History

Add workaround for missing strnlen.

Enabled by default, define HAVE_STRNLEN to disable workaround.

V committed 12 years ago

Commit b939d911 parent 47e81341 file · +5 −2Browse files

Showing the changes to codec/decoder/core/src/utils.cpp (1 of 1 file). Show all

Unified · Split

codec/decoder/core/src/utils.cpp+5−2
@@ -48,11 +48,14 @@ · 47 unmodified lines
4848 #include <sys/timeb.h>
4949 #ifndef _MSC_VER
5050 #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
5255 #else
5356 #include <sys/time.h>
5457 #include <sys/timeb.h>
55−#endif
58+#endif //_WIN32
5659
5760 #include "utils.h"
5861 #include "macros.h"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t