[cairo] Cairo on win32

Tor Lillqvist tml at iki.fi
Wed May 26 19:24:32 PDT 2004

 > > It also includes a load of #pragma
 > > directives to export the symbols for building a DLL.

Hmm, don't such #pragmas work only with MSVC? The more portable
solution would be to collect the exported symbols into a .def file,
that works both with MSVC and gcc.

(OTOH, when using gcc, if you don't have any __declspec(dllexport)
attributes, and no .def file either, gcc will automatically export all
global symbols. But if you want to be MSVC-friendly, you cannot rely
on that.)


More information about the cairo mailing list