diff options
author | midipix <writeonce@midipix.org> | 2017-11-18 03:27:43 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2017-11-18 18:16:36 -0500 |
commit | ea5470e0a34f7154531b857413b39b25588193e8 (patch) | |
tree | 1e78107234842510f439a7ca1c9efbc36072cca2 /include/w32lib/w32lib_api.h | |
parent | b6c684b4f6323104fac9c8f8ec9be6f6856e904e (diff) | |
download | w32lib-ea5470e0a34f7154531b857413b39b25588193e8.tar.bz2 w32lib-ea5470e0a34f7154531b857413b39b25588193e8.tar.xz |
created skeleton.
Diffstat (limited to 'include/w32lib/w32lib_api.h')
-rw-r--r-- | include/w32lib/w32lib_api.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/include/w32lib/w32lib_api.h b/include/w32lib/w32lib_api.h new file mode 100644 index 0000000..ae3fd88 --- /dev/null +++ b/include/w32lib/w32lib_api.h @@ -0,0 +1,35 @@ +#ifndef W32LIB_API_H +#define W32LIB_API_H + +#include <limits.h> + +/* wlib_export */ +#if defined(__dllexport) +#define wlib_export __dllexport +#else +#define wlib_export +#endif + +/* wlib_import */ +#if defined(__dllimport) +#define wlib_import __dllimport +#else +#define wlib_import +#endif + +/* wlib_api */ +#ifndef WLIB_APP +#if defined (WLIB_EXPORT) +#define wlib_api wlib_export +#elif defined (WLIB_IMPORT) +#define wlib_api wlib_import +#elif defined (WLIB_STATIC) +#define wlib_api +#else +#define wlib_api +#endif +#else +#define wlib_api +#endif + +#endif |