From 76c9cd64e03d16f5df0da35dba5bf7e1a91e0e9f Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Tue, 8 Apr 2014 14:19:34 +0300 Subject: [PATCH] Include to get __IPHONE_OS_VERSION_MIN_REQUIRED Change-Id: I0ef21ee7709cab05639935d70722973c9a18f93c --- external/glew/glew-ios.patch.1 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/external/glew/glew-ios.patch.1 b/external/glew/glew-ios.patch.1 index 9253ed3a771d..b29f75bf3f90 100644 --- a/external/glew/glew-ios.patch.1 +++ b/external/glew/glew-ios.patch.1 @@ -1,12 +1,17 @@ -*- Mode:Diff -*- --- glew/include/GL/glew.h +++ glew/include/GL/glew.h -@@ -1180,6 +1180,10 @@ +@@ -1180,6 +1180,15 @@ /* ---------------------------------- GLU ---------------------------------- */ -+#if !defined(GLEW_NO_GLU) && defined(__APPLE__) && defined(__IPHONE_OS_VERSION_MIN_REQUIRED) -+#define GLEW_NO_GLU ++#ifndef GLEW_NO_GLU ++# ifdef __APPLE__ ++# include ++# if defined(__IPHONE_OS_VERSION_MIN_REQUIRED) ++# define GLEW_NO_GLU ++# endif ++# endif +#endif + #ifndef GLEW_NO_GLU