From 25ba67b9b1a02ee95633fbbc70c494917283a71b Mon Sep 17 00:00:00 2001 From: Lawrence Sebald Date: Fri, 8 May 2015 22:35:16 -0400 Subject: [PATCH] Fix compilation inside the new kos-ports tree. --- include/glu.h | 6 ++++-- include/glut.h | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/glu.h b/include/glu.h index 29ba7f4..dcb89f2 100755 --- a/include/glu.h +++ b/include/glu.h @@ -15,10 +15,12 @@ #include __BEGIN_DECLS +#ifndef BUILD_LIBGL #include +#endif -#define GLU_FALSE GL_FALSE -#define GLU_TRUE GL_TRUE +#define GLU_FALSE 0 +#define GLU_TRUE 1 /* Mip-Mapped Textures MUST be square or rectangle */ GLAPI GLint APIENTRY gluBuild2DMipmaps(GLenum target, GLint internalFormat, diff --git a/include/glut.h b/include/glut.h index 406f867..91e4b04 100755 --- a/include/glut.h +++ b/include/glut.h @@ -12,7 +12,9 @@ #include __BEGIN_DECLS +#ifndef BUILD_LIBGL #include +#endif /* Flush the Submitted Primitive Data to the GPU for render */ GLAPI void APIENTRY glutSwapBuffers();