X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=util.cpp;h=579efb35409d4a17ddc22838ce3dbcec4c82fc92;hp=01787f013e0a4c70817be2ccf49743cddb7bd254;hb=95edbfccb0843da3cc105dadc5bc6d8e102f6071;hpb=8b58b0d92cbf62e173bd8a903774ba0d2c91c81f diff --git a/util.cpp b/util.cpp index 01787f0..579efb3 100644 --- a/util.cpp +++ b/util.cpp @@ -9,7 +9,7 @@ #include "init.h" #include "util.h" -#if defined(__DARWIN__) +#if defined(__APPLE__) #include #elif defined(WIN32) #include @@ -256,7 +256,7 @@ unsigned next_power_of_two(unsigned v) void *get_gl_context_identifier() { -#if defined(__DARWIN__) +#if defined(__APPLE__) return (void *)CGLGetCurrentContext(); #elif defined(WIN32) return (void *)wglGetCurrentContext();