Skip to content

Commit bf6d929

Browse files
committed
fix using c-api / compile with gcc
1 parent a0564fd commit bf6d929

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ccutil/platform.h

+4
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@
3838
#endif
3939
#endif /* defined(_MSC_VER) */
4040
#else
41+
#ifdef __cplusplus
4142
#include <climits>
43+
#else /* C compiler*/
44+
#include <limits.h>
45+
#endif /* __cplusplus */
4246
#ifndef PATH_MAX
4347
#define MAX_PATH 4096
4448
#else

0 commit comments

Comments
 (0)