]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
define _GNU_SOURCE only on __linux
authorRudolf Polzer <divverent@xonotic.org>
Wed, 1 Aug 2012 07:55:35 +0000 (09:55 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Wed, 1 Aug 2012 07:55:35 +0000 (09:55 +0200)
quakedef.h

index a9a705ed70f86302a5e58ab0441f711944d25085..e5680f527f94bbef3c6c0a78d32279884eb16059 100644 (file)
@@ -39,7 +39,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #endif
 
 #ifdef ANTICHEAT
-#define _GNU_SOURCE // for memmem
+# ifdef __linux__
+#  define _GNU_SOURCE // for memmem
+# endif
 #endif
 
 #include <sys/types.h>