diff options
Diffstat (limited to 'cairommconfig.h.in')
-rw-r--r-- | cairommconfig.h.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cairommconfig.h.in b/cairommconfig.h.in index f01a2e9..5b186ee 100644 --- a/cairommconfig.h.in +++ b/cairommconfig.h.in @@ -22,8 +22,10 @@ #ifdef CAIROMM_DLL # if defined(CAIROMM_BUILD) # define CAIROMM_API __declspec(dllexport) -# else +# elif !defined (__GNUC__) # define CAIROMM_API __declspec(dllimport) +# else /* don't dllimport classes/methods on GCC/MinGW */ +# define CAIROMM_API # endif /* Build a static or non-native-Windows library */ #else |