From cefceb0dc246b22e4c97d76bf04585f3a62e4b4d Mon Sep 17 00:00:00 2001 From: Anton Bachin Date: Tue, 28 Jan 2014 13:24:13 +0100 Subject: Allow use from Objective-C instead of just allowing building. * cairomm/fontface.h: Surround the include line in surface.h with some directives that undefine nil and then redefine it. * cairomm/surface.h: This aso undefined nil but this appears to be unnecessary. Bug #66328 --- cairomm/fontface.h | 8 -------- cairomm/surface.h | 5 ++++- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/cairomm/fontface.h b/cairomm/fontface.h index 007b40f..464332a 100644 --- a/cairomm/fontface.h +++ b/cairomm/fontface.h @@ -25,14 +25,6 @@ #include #include -/* following is required for OS X */ - -#ifdef nil -#undef nil -#endif - -/* end OS X */ - #include #ifdef CAIRO_HAS_FT_FONT #include diff --git a/cairomm/surface.h b/cairomm/surface.h index 64412cb..379742d 100644 --- a/cairomm/surface.h +++ b/cairomm/surface.h @@ -26,11 +26,14 @@ #ifdef nil #undef nil +#include +#define nil NULL +#else +#include #endif /* end OS X */ -#include #include #include #include -- cgit v1.2.3