mojoshader_opengl.c
changeset 1192 706e4d246ca1
parent 1188 25000edc0176
child 1195 f4ef8606c68d
--- a/mojoshader_opengl.c	Mon Feb 18 21:48:09 2019 -0500
+++ b/mojoshader_opengl.c	Mon Feb 18 21:49:03 2019 -0500
@@ -20,8 +20,11 @@
 #endif
 
 #if (defined(__APPLE__) && defined(__MACH__))
+#include "TargetConditionals.h"
+#if !TARGET_OS_IPHONE && !TARGET_OS_TV
 #define PLATFORM_MACOSX 1
-#endif
+#endif /* !TARGET_OS_IPHONE && !TARGET_OS_TV */
+#endif /* (defined(__APPLE__) && defined(__MACH__)) */
 
 #if PLATFORM_MACOSX
 #include <Carbon/Carbon.h>