mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-06 05:48:00 +02:00
[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:
parent
b6e910f4b6
commit
7f3a48f90b
2 changed files with 2 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue