diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/open-axiom.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/include/open-axiom.h b/src/include/open-axiom.h index 2c0335f0..e2c545a7 100644 --- a/src/include/open-axiom.h +++ b/src/include/open-axiom.h @@ -36,14 +36,15 @@ /* Cope with MS-platform oddities. */ #ifdef __MINGW32__ -# ifdef OPENAXIOM_BUILD_DLL +# ifdef DLL_EXPORT # define OPENAXIOM_EXPORT __declspec(dllexport) -# else +# elif defined(OPENAXIOM_DLL_IMPORT) # define OPENAXIOM_EXPORT __declspec(dllimport) -# endif /* OPENAXIOM_BUILD_DLL */ -#else -# define OPENAXIOM_EXPORT /* nothing */ -#endif /* __MINGW32__ */ +# endif /* DLL_EXPORT */ +#endif /* __MINGW32__ */ +#ifndef OPENAXIOM_EXPORT +# define OPENAXIOM_EXPORT /* nothing */ +#endif /* OPENAXIOM_EXPORT */ #if defined(HAVE_STDINT_H) # include <stdint.h> |