X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fgl.h;h=9a7cb9cd88a338aaf44582dac1a2b65fbdda969d;hp=c033a377aa7a1bd11ed75294fc3f67ae633b6f49;hb=bb162b9edd4b8c0e9faeed75da4148f5b9735450;hpb=a4ec5410595ddf37bfbc0e85ad87d31a9cbf94f1 diff --git a/source/gl.h b/source/gl.h index c033a377..9a7cb9cd 100644 --- a/source/gl.h +++ b/source/gl.h @@ -1,16 +1,29 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef MSP_GL_GL_H_ #define MSP_GL_GL_H_ +#ifdef __APPLE__ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wkeyword-macro" +#define extern extern __attribute__((weak_import)) +#include +#include +#undef extern +#pragma clang diagnostic pop +#elif defined(__ANDROID__) +#include +#include +typedef double GLdouble; +typedef long long GLint64; +#else #ifdef WIN32 #include #endif #include +#include +#endif + +#ifndef APIENTRY +#define APIENTRY +#endif #endif