X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fextension.cpp;h=56f96d4ecee2136dcde2d42f5fbdfa7bbf8b421b;hp=d4acedaf1213ac55817b6d30715db1b7364c95d1;hb=710418caebcbcb9ed22bb828cb1dcd88d6b99aa1;hpb=80977251da90a6878b82d143c22b8335284d3b3e diff --git a/source/extension.cpp b/source/extension.cpp index d4acedaf..56f96d4e 100644 --- a/source/extension.cpp +++ b/source/extension.cpp @@ -1,5 +1,5 @@ #include -#ifndef WIN32 +#if !defined(WIN32) && !defined(__APPLE__) #define GLX_GLXEXT_PROTOTYPES #include #endif @@ -92,10 +92,13 @@ bool is_version_at_least(unsigned a, unsigned b) ExtFunc *get_proc_address(const string &name) { -#ifndef WIN32 - return glXGetProcAddressARB(reinterpret_cast(name.c_str())); -#else +#if defined(WIN32) return reinterpret_cast(wglGetProcAddress(name.c_str())); +#elif defined(__APPLE__) + (void)name; + return 0; // Not supported +#else + return glXGetProcAddressARB(reinterpret_cast(name.c_str())); #endif }