X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgl.h;h=255242bf12956fb0559730cd8d8885fdd5813c71;hb=055f553b1a75f44e72f3c2b5a1c98c1e1e8f3f30;hp=d742bd57677ad33994f5f0ad5936acc82c5a2666;hpb=f14435e58bfa0fa697a06ba9a454bb30cd37d9d8;p=libs%2Fgl.git diff --git a/source/gl.h b/source/gl.h index d742bd57..255242bf 100644 --- a/source/gl.h +++ b/source/gl.h @@ -4,6 +4,14 @@ #ifdef WIN32 #include #endif +#ifdef __APPLE__ +#define extern extern __attribute__((weak_import)) +#include +#include +#undef extern +#else #include +#include +#endif #endif