Przeglądaj źródła

Knows where to look for glut.h on Mac with Clang compilers (command-line compilers under current XCode).

Russ Taylor 10 lat temu
rodzic
commit
386ff96530
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      samples/SimpleOpenGL/Sample_SimpleOpenGL.c

+ 4 - 0
samples/SimpleOpenGL/Sample_SimpleOpenGL.c

@@ -14,7 +14,11 @@
 #include <stdlib.h>
 #include <stdlib.h>
 #include <stdio.h>
 #include <stdio.h>
 
 
+#ifdef __APPLE__
+#include <glut.h>
+#else
 #include <GL/glut.h>
 #include <GL/glut.h>
+#endif
 
 
 /* assimp include files. These three are usually needed. */
 /* assimp include files. These three are usually needed. */
 #include <assimp/cimport.h>
 #include <assimp/cimport.h>