From c18706e33ad0bf651acf50501b93eb7a5677e833 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 14 Apr 2019 19:21:04 +0200 Subject: Fix MacOS build --- pugl/pugl_osx.m | 5 ++++- pugl_test.c | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m index e56a1a7..39be7f0 100644 --- a/pugl/pugl_osx.m +++ b/pugl/pugl_osx.m @@ -19,7 +19,8 @@ @file pugl_osx.m OSX/Cocoa Pugl Implementation. */ -#include "pugl/cairo_gl.h" +#define GL_SILENCE_DEPRECATION 1 + #include "pugl/gl.h" #include "pugl/pugl_internal.h" @@ -27,6 +28,8 @@ #include +#undef PUGL_HAVE_CAIRO + @class PuglOpenGLView; struct PuglInternalsImpl { diff --git a/pugl_test.c b/pugl_test.c index eaf95f8..0bc65d5 100644 --- a/pugl_test.c +++ b/pugl_test.c @@ -18,6 +18,8 @@ @file pugl_test.c A simple Pugl test that creates a top-level window. */ +#define GL_SILENCE_DEPRECATION 1 + #include "pugl/gl.h" #include "pugl/pugl.h" -- cgit v1.2.1