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 | 48 | #include <sys/timeb.h> |
| 49 | 49 | #ifndef _MSC_VER |
| 50 | 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 | 55 | #else |
| 53 | 56 | #include <sys/time.h> |
| 54 | 57 | #include <sys/timeb.h> |
| 55 | −#endif | |
| 58 | +#endif //_WIN32 | |
| 56 | 59 | |
| 57 | 60 | #include "utils.h" |
| 58 | 61 | #include "macros.h" |