Include <Availability.h> to get __IPHONE_OS_VERSION_MIN_REQUIRED

Change-Id: I0ef21ee7709cab05639935d70722973c9a18f93c
This commit is contained in:
Tor Lillqvist 2014-04-08 14:19:34 +03:00
parent d3f63d4b3d
commit 76c9cd64e0

View File

@ -1,13 +1,18 @@
-*- Mode:Diff -*- -*- Mode:Diff -*-
--- glew/include/GL/glew.h --- glew/include/GL/glew.h
+++ glew/include/GL/glew.h +++ glew/include/GL/glew.h
@@ -1180,6 +1180,10 @@ @@ -1180,6 +1180,15 @@
/* ---------------------------------- GLU ---------------------------------- */ /* ---------------------------------- 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 +# define GLEW_NO_GLU
+# endif +# endif
+# endif
+#endif
+ +
#ifndef GLEW_NO_GLU #ifndef GLEW_NO_GLU
/* this is where we can safely include GLU */ /* this is where we can safely include GLU */