diff options
author | midipix <writeonce@midipix.org> | 2016-07-04 00:50:42 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-07-21 03:47:24 -0400 |
commit | 0efa8cf1d20712cbfaa549d31a8ebc11a23f78ec (patch) | |
tree | 784e6b7220f8f7b75fddf4e95776e3e9f9f1642a /include/ptycon/ptycon_api.h | |
parent | 9afa0dab7afbc1f86c0c3ee656c6c92c872734b7 (diff) | |
download | ptycon-0efa8cf1d20712cbfaa549d31a8ebc11a23f78ec.tar.bz2 ptycon-0efa8cf1d20712cbfaa549d31a8ebc11a23f78ec.tar.xz |
created free-standing project skeleton.
Diffstat (limited to 'include/ptycon/ptycon_api.h')
-rw-r--r-- | include/ptycon/ptycon_api.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/include/ptycon/ptycon_api.h b/include/ptycon/ptycon_api.h new file mode 100644 index 0000000..35ba2a4 --- /dev/null +++ b/include/ptycon/ptycon_api.h @@ -0,0 +1,35 @@ +#ifndef PTYCON_API_H +#define PTYCON_API_H + +#include <limits.h> + +/* ptyc_export */ +#if defined(__dllexport) +#define ptyc_export __dllexport +#else +#define ptyc_export +#endif + +/* ptyc_import */ +#if defined(__dllimport) +#define ptyc_import __dllimport +#else +#define ptyc_import +#endif + +/* ptyc_api */ +#ifndef PTYC_APP +#if defined (PTYC_BUILD) +#define ptyc_api ptyc_export +#elif defined (PTYC_SHARED) +#define ptyc_api ptyc_import +#elif defined (PTYC_STATIC) +#define ptyc_api +#else +#define ptyc_api +#endif +#else +#define ptyc_api +#endif + +#endif |