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
Unified · Split
| @@ -37,9 +37,7 @@ · 36 unmodified lines | ||
| 37 | 37 | #include <Windows.h> |
| 38 | 38 | #endif // __PLATFORM_WIN32__ |
| 39 | 39 | |
| 40 | −#ifdef __PLATFORM_LINUX__ | |
| 41 | −#include <linux/limits.h> | |
| 42 | −#endif // __PLATFORM_LINUX__ | |
| 40 | +#include <limits.h> | |
| 43 | 41 | |
| 44 | 42 | #include <stdio.h> |
| 45 | 43 | using namespace std; |