Showing the changes to codec/encoder/core/src/utils.cpp (1 of 2 files). Show all
Unified · Split
| @@ -157,7 +157,7 @@ void WelsLogDefault (void* pCtx, const int32_t kiLevel, const str_t* kpFmtStr, v · 156 unmodified lines | |||
| 157 | #endif//_MSC_VER | 157 | #endif//_MSC_VER |
| 158 | #else//__GNUC__ | 158 | #else//__GNUC__ |
| 159 | struct tm* t_now; | 159 | struct tm* t_now; |
| 160 | #endif//WIN32 | 160 | #endif//WIN32 |
| 161 | 161 | ||
| 162 | #if defined( WIN32 ) | 162 | #if defined( WIN32 ) |
| 163 | struct _timeb tb; | 163 | struct _timeb tb; |
| @@ -172,7 +172,7 @@ void WelsLogDefault (void* pCtx, const int32_t kiLevel, const str_t* kpFmtStr, v · 8 unmodified lines | |||
| 172 | return; | 172 | return; |
| 173 | } | 173 | } |
| 174 | #endif//_MSC_VER >= 1500 | 174 | #endif//_MSC_VER >= 1500 |
| 175 | #endif//_MSC_VER | 175 | #endif//_MSC_VER |
| 176 | FTIME (&tb); | 176 | FTIME (&tb); |
| 177 | #elif defined( __GNUC__ ) | 177 | #elif defined( __GNUC__ ) |
| 178 | struct timeval tv; | 178 | struct timeval tv; |
| @@ -252,7 +252,7 @@ void WelsLogDefault (void* pCtx, const int32_t kiLevel, const str_t* kpFmtStr, v · 73 unmodified lines | |||
| 252 | #endif//_MSC_VER >= 1500 | 252 | #endif//_MSC_VER >= 1500 |
| 253 | #endif//_MSC_VER | 253 | #endif//_MSC_VER |
| 254 | #elif defined (__GNUC__) | 254 | #elif defined (__GNUC__) |
| 255 | iCurUsed = SNPRINTF (&pBuf[iBufUsed], iBufLeft, ".%3.3u]: ", tv.tv_usec / 1000); // confirmed_safe_unsafe_usage | 255 | iCurUsed = SNPRINTF (&pBuf[iBufUsed], iBufLeft, ".%3.3u]: ", (unsigned int) (tv.tv_usec / 1000)); // confirmed_safe_unsafe_usage |
| 256 | #endif//WIN32 | 256 | #endif//WIN32 |
| 257 | if (iCurUsed >= 0) { | 257 | if (iCurUsed >= 0) { |
| 258 | iBufUsed += iCurUsed; | 258 | iBufUsed += iCurUsed; |