Sfoglia il codice sorgente

Merge pull request #602 from ReliaSolve/mac_build_improvements

Builds out of the box on mac with ASSIMP_BUILD_SAMPLES turned on.
Alexander Gessler 10 anni fa
parent
commit
71b275eea2
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  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>