Should not #include <linux/limits.h> on non-Linux platforms. In fact, as shown below, #include <limits.h> on Linux includes linux/limits.h, so just do that. $ echo '#include <limits.h>' > /tmp/l.c $ g++ -E /tmp/l.c | egrep linux/limits # 1 "/usr/include/linux/limits.h" 1 3 4
Showing the changes to src/core/util_string.cpp (1 of 1 file). Show all
Unified · Split
| @@ -37,9 +37,7 @@ · 36 unmodified lines | |||
| 37 | #include <Windows.h> | 37 | #include <Windows.h> |
| 38 | #endif // __PLATFORM_WIN32__ | 38 | #endif // __PLATFORM_WIN32__ |
| 39 | 39 | ||
| 40 | #ifdef __PLATFORM_LINUX__ | 40 | #include <limits.h> |
| 41 | #include <linux/limits.h> | ||
| 42 | #endif // __PLATFORM_LINUX__ | ||
| 43 | 41 | ||
| 44 | #include <stdio.h> | 42 | #include <stdio.h> |
| 45 | using namespace std; | 43 | using namespace std; |