Include <Availability.h> to get __IPHONE_OS_VERSION_MIN_REQUIRED
Change-Id: I0ef21ee7709cab05639935d70722973c9a18f93c
This commit is contained in:
parent
d3f63d4b3d
commit
76c9cd64e0
9
external/glew/glew-ios.patch.1
vendored
9
external/glew/glew-ios.patch.1
vendored
@ -1,13 +1,18 @@
|
||||
-*- 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)
|
||||
+#ifndef GLEW_NO_GLU
|
||||
+# ifdef __APPLE__
|
||||
+# include <Availability.h>
|
||||
+# if defined(__IPHONE_OS_VERSION_MIN_REQUIRED)
|
||||
+# define GLEW_NO_GLU
|
||||
+# endif
|
||||
+# endif
|
||||
+#endif
|
||||
+
|
||||
#ifndef GLEW_NO_GLU
|
||||
/* this is where we can safely include GLU */
|
||||
|
Loading…
x
Reference in New Issue
Block a user