From be00ce9b1aae091cbc9f3722fc4df941ff70b548 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 1 Aug 2012 09:55:35 +0200 Subject: [PATCH] define _GNU_SOURCE only on __linux --- quakedef.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.2