diff options
author | midipix <writeonce@midipix.org> | 2017-11-08 22:25:45 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2017-11-08 22:25:45 -0500 |
commit | c9d3ad10bc99d4dfff160790bc40990f60f7a93c (patch) | |
tree | 070e4420996381b80ddce2492a2b17044617b478 /include | |
parent | 924c36dc53b2ed04e977628220b8f0af8b7a8f1f (diff) | |
download | u16ports-c9d3ad10bc99d4dfff160790bc40990f60f7a93c.tar.bz2 u16ports-c9d3ad10bc99d4dfff160790bc40990f60f7a93c.tar.xz |
created skeleton.
Diffstat (limited to 'include')
-rw-r--r-- | include/u16ports/u16ports.h | 18 | ||||
-rw-r--r-- | include/u16ports/u16ports_api.h | 35 |
2 files changed, 53 insertions, 0 deletions
diff --git a/include/u16ports/u16ports.h b/include/u16ports/u16ports.h new file mode 100644 index 0000000..fbce171 --- /dev/null +++ b/include/u16ports/u16ports.h @@ -0,0 +1,18 @@ +#ifndef U16PORTS_H +#define U16PORTS_H + +#include <stdint.h> +#include <unistd.h> +#include <sys/types.h> + +#include "u16ports_api.h" + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/include/u16ports/u16ports_api.h b/include/u16ports/u16ports_api.h new file mode 100644 index 0000000..715c10e --- /dev/null +++ b/include/u16ports/u16ports_api.h @@ -0,0 +1,35 @@ +#ifndef U16PORTS_API_H +#define U16PORTS_API_H + +#include <limits.h> + +/* u16_export */ +#if defined(__dllexport) +#define u16_export __dllexport +#else +#define u16_export +#endif + +/* u16_import */ +#if defined(__dllimport) +#define u16_import __dllimport +#else +#define u16_import +#endif + +/* u16_api */ +#ifndef U16_APP +#if defined (U16_EXPORT) +#define u16_api u16_export +#elif defined (U16_IMPORT) +#define u16_api u16_import +#elif defined (U16_STATIC) +#define u16_api +#else +#define u16_api +#endif +#else +#define u16_api +#endif + +#endif |