Commit 9fcf7fbd6ffcb6fa077aec09cd594d4ff14f1fee

dtremenak 2008-05-06T21:41:58

on recent MS compilers one must include stdlib.h before glut.h

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/demo/simple.cpp b/demo/simple.cpp
index d17c5ab..b4d8826 100644
--- a/demo/simple.cpp
+++ b/demo/simple.cpp
@@ -27,6 +27,8 @@
 
 #include <math.h>
 
+#include <stdlib.h> // exit()
+
 #if defined HAVE_GL_GLUT_H
 #   include <GL/glut.h>
 #elif defined HAVE_GLUT_GLUT_H