From 95edbfccb0843da3cc105dadc5bc6d8e102f6071 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Thu, 15 Jan 2015 22:47:29 +0100 Subject: [PATCH 1/1] Check for __APPLE__ instead of __DARWIN__. Fixes compile with recent epoxy. Bug report and suggestion by Dan Dennedy. --- util.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.2