From 634bcc63b7adff53d817c19195c4060170eeecfc Mon Sep 17 00:00:00 2001 From: shennetsind Date: Fri, 14 Jun 2013 13:33:02 -0300 Subject: Fixed the '"__USE_GNU" redefined' warnings on selected platforms Special Thanks to Takkun~! Signed-off-by: shennetsind --- src/common/strlib.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/common/strlib.h') 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 -#define __USE_GNU // required to enable strnlen on some platforms -#include -#undef __USE_GNU +#ifndef __USE_GNU + #define __USE_GNU // required to enable strnlen on some platforms + #include + #undef __USE_GNU +#else + #include +#endif #ifdef WIN32 #define HAVE_STRTOK_R -- cgit v1.2.3-60-g2f50