[cairo.h] Don't define cairo_public to __declspec(dllimport) for static build

That define should target win32 DLL builds only.  We can't tell though,
so we require user to define CAIRO_WIN32_STATIC_BUILD to signal that.
This commit is contained in:
Behdad Esfahbod 2008-09-26 13:27:42 -04:00
parent b6e910f4b6
commit 7f3a48f90b
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@
#if CAIRO_MUTEX_IMPL_WIN32
#if !defined(CAIRO_WIN32_STATIC_BUILD)
#if !CAIRO_WIN32_STATIC_BUILD
#define WIN32_LEAN_AND_MEAN
/* We require Windows 2000 features such as ETO_PDY */

View file

@ -51,7 +51,7 @@
#endif
#ifndef cairo_public
# ifdef _MSC_VER
# if _MSC_VER && !CAIRO_WIN32_STATIC_BUILD
# define cairo_public __declspec(dllimport)
# else
# define cairo_public