commit f5851fb2f631c63eee153ee519e855bd756c5bbf
parent 581091073782d9586d1799ba89dc5f6232065bd1
Author: Kyle Milz <kyle@0x30.net>
Date: Sun, 11 Dec 2016 20:48:09 -0700
src: move #include <GL/glew.h> into the files its needed
Diffstat:
4 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/demo-common.h b/src/demo-common.h
@@ -22,11 +22,8 @@
#include "glyphy/glyphy.h"
#include <stdlib.h>
-#include <string.h>
#include <stdio.h>
-#include <GL/glew.h>
-
#if defined(__APPLE__)
# include <OpenGL/OpenGL.h>
#else
diff --git a/src/demo-shader.cc b/src/demo-shader.cc
@@ -16,6 +16,7 @@
* Google Author(s): Behdad Esfahbod
*/
#include <assert.h>
+#include <GL/glew.h>
#include "demo-shader.h"
diff --git a/src/gl_main.cc b/src/gl_main.cc
@@ -1,4 +1,5 @@
#include <cmath>
+#include <GL/glew.h>
#include <err.h>
#include <iostream>
#include <sstream>
diff --git a/src/gl_view.cc b/src/gl_view.cc
@@ -16,7 +16,10 @@
* Google Author(s): Behdad Esfahbod, Maysum Panju, Wojciech Baranowski
*/
#include <sys/time.h>
+
#include <assert.h>
+#include <GL/glew.h>
+
#include "gl_view.h"