aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_osx.m
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-21 16:08:37 +0200
committerDavid Robillard <d@drobilla.net>2019-07-21 17:24:42 +0200
commit20114f1ef0b7e4c75417c7a6423684260e91d206 (patch)
treeb3bb3d200e5ae820458ffa63fde540d6cd4fe5d9 /pugl/pugl_osx.m
parentfe920b2cbca0ff77d371708953d32b99a300e2a2 (diff)
downloadpugl-20114f1ef0b7e4c75417c7a6423684260e91d206.tar.gz
pugl-20114f1ef0b7e4c75417c7a6423684260e91d206.tar.bz2
pugl-20114f1ef0b7e4c75417c7a6423684260e91d206.zip
Fix Cairo on MacOS
Diffstat (limited to 'pugl/pugl_osx.m')
-rw-r--r--pugl/pugl_osx.m8
1 files changed, 5 insertions, 3 deletions
diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m
index a283283..4a44dab 100644
--- a/pugl/pugl_osx.m
+++ b/pugl/pugl_osx.m
@@ -1,5 +1,5 @@
/*
- Copyright 2012-2017 David Robillard <http://drobilla.net>
+ Copyright 2012-2019 David Robillard <http://drobilla.net>
Copyright 2017 Hanspeter Portner <dev@open-music-kontrollers.ch>
Permission to use, copy, modify, and/or distribute this software for any
@@ -24,13 +24,15 @@
#include "pugl/gl.h"
#include "pugl/pugl_internal.h"
+#ifdef PUGL_HAVE_CAIRO
+#include "pugl/cairo_gl.h"
+#endif
+
#import <Cocoa/Cocoa.h>
#include <stdlib.h>
#include <time.h>
-#undef PUGL_HAVE_CAIRO
-
@class PuglOpenGLView;
struct PuglInternalsImpl {