Enabled by default, define HAVE_STRNLEN to disable workaround.
Showing the changes to codec/decoder/core/src/utils.cpp (1 of 1 file). Show all
Unified · Split
| @@ -48,11 +48,14 @@ · 47 unmodified lines | |||
| 48 | #include <sys/timeb.h> | 48 | #include <sys/timeb.h> |
| 49 | #ifndef _MSC_VER | 49 | #ifndef _MSC_VER |
| 50 | #include <sys/time.h> | 50 | #include <sys/time.h> |
| 51 | #endif | 51 | #ifndef HAVE_STRNLEN |
| 52 | #define strnlen(a,b) strlen(a) | ||
| 53 | #endif //!HAVE_STRNLEN | ||
| 54 | #endif //!_MSC_VER | ||
| 52 | #else | 55 | #else |
| 53 | #include <sys/time.h> | 56 | #include <sys/time.h> |
| 54 | #include <sys/timeb.h> | 57 | #include <sys/timeb.h> |
| 55 | #endif | 58 | #endif //_WIN32 |
| 56 | 59 | ||
| 57 | #include "utils.h" | 60 | #include "utils.h" |
| 58 | #include "macros.h" | 61 | #include "macros.h" |