From fe86135d9b9ac863d6c565d858ac13247368845b Mon Sep 17 00:00:00 2001 From: norly Date: Tue, 1 Nov 2011 19:20:25 +0000 Subject: [PATCH] Mac OS X header compatibility. --- src/glancillary.c | 5 +++++ src/glancillary.h | 6 ++++++ src/graph.c | 5 +++++ src/main.c | 9 +++++++++ 4 files changed, 25 insertions(+) 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 +#include +#else #include #include +#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 +#else +#include +#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 + +#ifdef __APPLE__ +#include +#else #include +#endif #include "graph.h" diff --git a/src/main.c b/src/main.c index e79ae09..f658a33 100644 --- a/src/main.c +++ b/src/main.c @@ -2,7 +2,16 @@ // -- norly. #include + +#ifdef __APPLE__ +#include +#include +#include +#else +#include +#include #include +#endif #include "graph.h" #include "glancillary.h" -- 2.30.2