# HG changeset patch # User John Tsiombikas # Date 1421045972 -7200 # Node ID 0fea7c2b25d71b1d366c7f6bc044b031e5cc9e99 # Parent bd37285ba5b62d15752bb68d9aea7524cc04394e compiles on osx, no further testing diff -r bd37285ba5b6 -r 0fea7c2b25d7 src/mesh.c --- a/src/mesh.c Mon Jan 12 07:34:30 2015 +0200 +++ b/src/mesh.c Mon Jan 12 08:59:32 2015 +0200 @@ -23,9 +23,17 @@ static void (*glBindBuffer)(GLenum, GLuint); #else #ifndef GL_GLEXT_PROTOTYPES + +#ifndef GLAPI +#define GLAPI +#endif +#ifndef APIENTRY +#define APIENTRY +#endif + GLAPI void APIENTRY glGenBuffers(GLsizei, GLuint*); -GLAPI void APIENTRY glDeleteBuffers(GLsizei, GLuint*); -GLAPI void APIENTRY glBufferData(GLenum, unsigned int, const GLvoid*, GLenum); +GLAPI void APIENTRY glDeleteBuffers(GLsizei, const GLuint*); +GLAPI void APIENTRY glBufferData(); GLAPI void APIENTRY glBindBuffer(GLenum, GLuint); #endif #endif diff -r bd37285ba5b6 -r 0fea7c2b25d7 src/opengl.h --- a/src/opengl.h Mon Jan 12 07:34:30 2015 +0200 +++ b/src/opengl.h Mon Jan 12 08:59:32 2015 +0200 @@ -8,6 +8,7 @@ #ifdef __APPLE__ #include +#include #else #include #endif