[cairo] Unable to compile cairomm 1.7.0 (OS X fink)
Murray Cumming
murrayc at murrayc.com
Thu Oct 30 02:19:06 PDT 2008
Really, could you submit a patch, please?
If we make the changes ourselves then it's more likely that we'll get it
wrong, and we can't test it without a Mac.
On Tue, 2008-10-28 at 22:09 +0200, Asko Kauppi wrote:
> I know you'd rather take it in patch format, but it's easier for me to
> just send it like this.
>
> cairomm/fontface.h:
>
> ...
> #ifndef __CAIROMM_FONTFACE_H
> #define __CAIROMM_FONTFACE_H
>
> #include <string>
> #include <vector>
> #include <cairomm/enums.h>
> #include <cairomm/types.h>
> #include <cairomm/refptr.h>
>
> #ifdef nil
> /* stupid OS X, defining nil */
> #undef nil
> #endif
>
> #include <sigc++/slot.h>
> #include <cairo.h>
> #ifdef CAIRO_HAS_FT_FONT
> #include <cairo-ft.h>
> #endif //CAIRO_HAS_FT_FONT
> ...
>
> cairomm/surface.h:
>
> ...
> #ifndef __CAIROMM_SURFACE_H
> #define __CAIROMM_SURFACE_H
>
> #include <string>
> #include <vector>
>
> #ifdef nil
> /* stupid OS X, defining nil */
> #undef nil
> #endif
>
> #include <sigc++/slot.h>
> #include <cairomm/enums.h>
> #include <cairomm/exception.h>
> #include <cairomm/fontoptions.h>
> #include <cairomm/refptr.h>
> ....
>
> You may or may not decide to leave the cocky comment there. ;)
>
> -asko
>
>
> Murray Cumming kirjoitti 28.10.2008 kello 21:54:
>
> > On Tue, 2008-10-28 at 21:29 +0200, Asko Kauppi wrote:
> > [snip]
> >> My current patching (of adding #undef nil's to the places where
> >> libsigc
> >> ++ is included) compiles things well.
> > [snip]
> >
> > Could you provide that patch to us, please?
> >
> >> I brought this issue to SO as well:
> >> http://stackoverflow.com/questions/244499/why-does-os-x-define-nil
> >
> > I see that ardour have a patch that you have found. I wish that they
> > would submit that to libsigc++.
> >
> > --
> > Murray Cumming
> > murrayc at murrayc.com
> > www.murrayc.com
> > www.openismus.com
> >
> >
>
--
Murray Cumming
murrayc at murrayc.com
www.murrayc.com
www.openismus.com
More information about the cairo
mailing list