From ea5470e0a34f7154531b857413b39b25588193e8 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 18 Nov 2017 03:27:43 +0000 Subject: created skeleton. --- include/w32lib/w32lib.h | 25 +++++++++++++++++++++++++ include/w32lib/w32lib_api.h | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 include/w32lib/w32lib.h create mode 100644 include/w32lib/w32lib_api.h (limited to 'include') diff --git a/include/w32lib/w32lib.h b/include/w32lib/w32lib.h new file mode 100644 index 0000000..1b94f73 --- /dev/null +++ b/include/w32lib/w32lib.h @@ -0,0 +1,25 @@ +#ifndef W32LIB_H +#define W32LIB_H + +#include +#include + +#include "w32lib_api.h" + +#ifdef __cplusplus +extern "C" { +#endif + +/* pre-alpha */ +#ifndef WLIB_APP +#ifndef WLIB_PRE_ALPHA +#error libw32lib: pre-alpha: ABI is not final! +#error to use the library, please pass -DWLIB_PRE_ALPHA to the compiler. +#endif +#endif + +#ifdef __cplusplus +} +#endif + +#endif 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 + +/* 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 -- cgit v1.2.3