diff options
author | midipix <writeonce@midipix.org> | 2015-11-28 05:08:48 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2015-11-28 05:30:31 -0500 |
commit | 52d60ddf8ef31cdfa2c014e24733cd9bf8333564 (patch) | |
tree | 22874d286222b389b3123a4665680b771e8c4765 /include/ntcon/ntcon_api.h | |
parent | 742443424b7fd3f972e72e6bc4e9ca39d344abcb (diff) | |
download | ntcon-52d60ddf8ef31cdfa2c014e24733cd9bf8333564.tar.bz2 ntcon-52d60ddf8ef31cdfa2c014e24733cd9bf8333564.tar.xz |
initial commit.
Diffstat (limited to 'include/ntcon/ntcon_api.h')
-rw-r--r-- | include/ntcon/ntcon_api.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/include/ntcon/ntcon_api.h b/include/ntcon/ntcon_api.h new file mode 100644 index 0000000..15c89e8 --- /dev/null +++ b/include/ntcon/ntcon_api.h @@ -0,0 +1,32 @@ +#ifndef NTCON_API_H +#define NTCON_API_H + +/* host type (posix-libc/free-standing) */ +#include "ntcon_env.h" + +/* ntcon_export */ +#if defined(__attr_export__) +#define ntcon_export __attr_export__ +#else +#define ntcon_export +#endif + +/* ntcon_import */ +#if defined(__attr_import__) +#define ntcon_import __attr_import__ +#else +#define ntcon_import +#endif + +/* ntcon_api */ +#if defined (NTCON_BUILD) +#define ntcon_api ntcon_export +#elif defined (NTCON_SHARED) +#define ntcon_api ntcon_import +#elif defined (NTCON_STATIC) +#define ntcon_api +#else +#define ntcon_api +#endif + +#endif |