Skip to content

Commit

Permalink
[cairo.h] Don't define cairo_public to __declspec(dllimport) for stat…
Browse files Browse the repository at this point in the history
…ic 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.
  • Loading branch information
Behdad Esfahbod committed Sep 26, 2008
1 parent b6e910f commit 7f3a48f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cairo-system.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion src/cairo.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f3a48f

Please sign in to comment.