[cairo] Win32 Testsuite + .def file

Vladimir Vukicevic vladimirv at gmail.com
Thu Dec 15 21:08:46 PST 2005


On 12/15/05, Owen Taylor <otaylor at redhat.com> wrote:
> I don't really see why a .def file is necessary at all ... when I
> built for Win32 last week, I just added something like:
>
> #ifdef BUILDING_CAIRO
> #define cairo_public __declspec(dllexport)
> #else
> #define cairo_public __declspec(dllimport)
> #endif
>
> To cairo-features.h. Then defined (in the visual studio project
> settings) BUILDING_CAIRO. That removes all the worries about whether
> the .def file matches the particular configuration.

I agree; I think the def file predates the cairo_public annotations.

   - Vlad


More information about the cairo mailing list