summaryrefslogtreecommitdiff
path: root/tests/bugs/crash-texparameter-before-teximage.c
diff options
context:
space:
mode:
authorVinson Lee <vlee@vmware.com>2009-05-15 16:20:56 -0600
committerBrian Paul <brianp@vmware.com>2009-05-15 16:21:16 -0600
commitd5c3408cd0c8273d04b8d5baa1086496aa97a82a (patch)
tree827cd90fdfe8c9dac3c316e802f70fa74b00a9fb /tests/bugs/crash-texparameter-before-teximage.c
parent5cb625c75572df96225228d5726288ca4280b506 (diff)
Reorder includes in bugs tests.
Include the standard headers before including glut.h. This fixes this MSVC compile error. error C2381: 'exit' : redefinition; __declspec(noreturn)
Diffstat (limited to 'tests/bugs/crash-texparameter-before-teximage.c')
-rw-r--r--tests/bugs/crash-texparameter-before-teximage.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/bugs/crash-texparameter-before-teximage.c b/tests/bugs/crash-texparameter-before-teximage.c
index 74ee80355..5eefc5d59 100644
--- a/tests/bugs/crash-texparameter-before-teximage.c
+++ b/tests/bugs/crash-texparameter-before-teximage.c
@@ -7,16 +7,16 @@
* This bug was originally triggered by Glest.
*/
-#if defined(__APPLE__)
-#include <GLUT/glut.h>
-#else
-#include "GL/glut.h"
-#endif
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
+#if defined(__APPLE__)
+#include <GLUT/glut.h>
+#else
+#include "GL/glut.h"
+#endif
#include "piglit-util.h"