mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-09 06:08:02 +02:00
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:
parent
11e96487d8
commit
6d0d5e7ba0
2 changed files with 9 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue