britten at caris.com
Fri Sep 26 10:34:12 PDT 2008
Augusto Radtke wrote:
> #ifndef cairo_public
> #if _MSC_VER && CAIRO_WIN32_BUILD_DLL
> #define cairo_public __declspec(dllexport)
> #elif _MSC_VER && !CAIRO_WIN32_BUILD_DLL
> #define cairo_public __declspec(dllimport)
> #elif CAIRO_WIN32_BUILD_DLL
> #define cairo_public extern
> #define cairo_public
[ snip ]
> extern defined on the second #elif is to people building a DLL on GCC,
> does it use extern as somekind of __declspec(dllexport)? This is
> something I need some light from someone else.
I'm not sure if this is what you're asking, but you might be interested
in this information, if you're getting into that import/export stuff:
[ NB - Google cache link - The real site seems to be broken currently ]
It's a simplification/summary of the (extensive!) work of Ulrich Drepper
in his paper: http://people.redhat.com/drepper/dsohowto.pdf
I'm just starting to look at it for our own stuff, and your discussion
seemed to be right along the same lines, so I figured I'd point it out.
Hope this helps!
More information about the cairo