瀏覽代碼

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 年之前
父節點
當前提交
71b275eea2
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      samples/SimpleOpenGL/Sample_SimpleOpenGL.c

+ 4 - 0
samples/SimpleOpenGL/Sample_SimpleOpenGL.c

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