Define cairo_public correctly for win32

I'm conditioning on _MSC_VER.  Is this accurate?
Note that we never overwrite cairo_public.  So one can define it to
something else.
This commit is contained in:
Behdad Esfahbod 2008-09-20 17:52:19 -04:00
parent 11e96487d8
commit 6d0d5e7ba0
2 changed files with 9 additions and 1 deletions

View file

@ -51,7 +51,11 @@
#endif
#ifndef cairo_public
# define cairo_public
# ifdef _MSC_VER
# define cairo_public __declspec(dllimport)
# else
# define cairo_public
# endif
#endif
CAIRO_BEGIN_DECLS

View file

@ -50,6 +50,10 @@
#include "config.h"
#endif
#ifdef _MSC_VER
#define cairo_public __declspec(dllexport)
#endif
#include <assert.h>
#include <stdlib.h>
#include <string.h>