summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string.c')
-rw-r--r--src/string.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c
index e5e03d27c..3b57edf54 100644
--- a/src/string.c
+++ b/src/string.c
@@ -5,7 +5,12 @@
*/
#include <ctype.h>
-#include <limits.h>
+#ifndef SIZE_MAX
+ /* Some versions of VC++
+ * has SIZE_MAX in stdint.h
+ */
+# include <limits.h>
+#endif
#include <stddef.h>
#include <stdlib.h>
#include <string.h>