From 74f04849c4d04425e911acbe6bedb2596046f5b0 Mon Sep 17 00:00:00 2001 From: Masaki Muranaka Date: Fri, 29 Mar 2013 11:02:35 +0900 Subject: Rearrange SIZE_MAX. It is supported also VC++ since its version10. And there seems SIZE_MAX is defined in stdint.h. And it possibly (depends on the version of VC++) conflicts with SIZE_MAX in limits.h. This patch is no need if I did not support VC++. --- src/string.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/string.c') 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 -#include +#ifndef SIZE_MAX + /* Some versions of VC++ + * has SIZE_MAX in stdint.h + */ +# include +#endif #include #include #include -- cgit v1.2.3