diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/glancillary.c | 5 | ||||
-rw-r--r-- | src/glancillary.h | 6 | ||||
-rw-r--r-- | src/graph.c | 5 | ||||
-rw-r--r-- | src/main.c | 9 |
4 files changed, 25 insertions, 0 deletions
diff --git a/src/glancillary.c b/src/glancillary.c index 959cdac..1d5f03b 100644 --- a/src/glancillary.c +++ b/src/glancillary.c @@ -1,5 +1,10 @@ +#ifdef __APPLE__ +#include <OpenGL/gl.h> +#include <OpenGL/glu.h> +#else #include <GL/gl.h> #include <GL/glu.h> +#endif #include "glancillary.h" diff --git a/src/glancillary.h b/src/glancillary.h index 4fa63a2..7a258ab 100644 --- a/src/glancillary.h +++ b/src/glancillary.h @@ -1,6 +1,12 @@ #ifndef _GLANCILLARY_H_ #define _GLANCILLARY_H_ +#ifdef __APPLE__ +#include <OpenGL/gl.h> +#else +#include <GL/gl.h> +#endif + void glaInit(void); void glaCameraRotatef(GLfloat *cmat, GLfloat angle, GLfloat x, GLfloat y, GLfloat z); void glaCameraTranslatef(GLfloat *cmat, GLfloat x, GLfloat y, GLfloat z); diff --git a/src/graph.c b/src/graph.c index 9a69ba5..9dc778b 100644 --- a/src/graph.c +++ b/src/graph.c @@ -1,5 +1,10 @@ #include <stdlib.h> + +#ifdef __APPLE__ +#include <OpenGL/gl.h> +#else #include <GL/gl.h> +#endif #include "graph.h" @@ -2,7 +2,16 @@ // -- norly. #include <stdlib.h> + +#ifdef __APPLE__ +#include <OpenGL/gl.h> +#include <OpenGL/glu.h> +#include <GLUT/glut.h> +#else +#include <GL/gl.h> +#include <GL/glu.h> #include <GL/glut.h> +#endif #include "graph.h" #include "glancillary.h" |