From: Rudolf Polzer Date: Wed, 1 Aug 2012 07:55:35 +0000 (+0200) Subject: define _GNU_SOURCE only on __linux X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=be00ce9b1aae091cbc9f3722fc4df941ff70b548;p=xonotic%2Fdarkplaces.git define _GNU_SOURCE only on __linux --- diff --git a/quakedef.h b/quakedef.h index a9a705ed..e5680f52 100644 --- a/quakedef.h +++ b/quakedef.h @@ -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