diff options
author | shennetsind <ind@henn.et> | 2013-06-14 13:33:02 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-06-14 13:33:02 -0300 |
commit | 634bcc63b7adff53d817c19195c4060170eeecfc (patch) | |
tree | 9a06b87975ffb857906428f208113113c1fc8f74 /src/common | |
parent | 203dd2affa34f90c1ba037d4081494d26613ce4d (diff) | |
download | hercules-634bcc63b7adff53d817c19195c4060170eeecfc.tar.gz hercules-634bcc63b7adff53d817c19195c4060170eeecfc.tar.bz2 hercules-634bcc63b7adff53d817c19195c4060170eeecfc.tar.xz hercules-634bcc63b7adff53d817c19195c4060170eeecfc.zip |
Fixed the '"__USE_GNU" redefined' warnings on selected platforms
Special Thanks to Takkun~!
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/strlib.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/common/strlib.h b/src/common/strlib.h index 4a073c3bc..9b1875d45 100644 --- a/src/common/strlib.h +++ b/src/common/strlib.h @@ -8,9 +8,13 @@ #include "../common/cbasetypes.h" #include <stdarg.h> -#define __USE_GNU // required to enable strnlen on some platforms -#include <string.h> -#undef __USE_GNU +#ifndef __USE_GNU + #define __USE_GNU // required to enable strnlen on some platforms + #include <string.h> + #undef __USE_GNU +#else + #include <string.h> +#endif #ifdef WIN32 #define HAVE_STRTOK_R |