From e419cc65ad36df725d6a75d63f75ec6fa554e990 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 11 Dec 2016 22:03:56 -0500 Subject: api headers: added nt_api.h, supporting visual studio and hosted environments. --- include/ntapi/nt_api.h | 17 +++++++++++++++++ include/ntapi/ntapi.h | 12 +----------- project/headers.mk | 1 + 3 files changed, 19 insertions(+), 11 deletions(-) create mode 100644 include/ntapi/nt_api.h diff --git a/include/ntapi/nt_api.h b/include/ntapi/nt_api.h new file mode 100644 index 0000000..45d895a --- /dev/null +++ b/include/ntapi/nt_api.h @@ -0,0 +1,17 @@ +#ifndef _NT_API_H_ +#define _NT_API_H_ + +#include "nt_abi.h" +#include "nt_compiler.h" + +#if defined (NTAPI_EXPORT) +#define __ntapi_api __attr_export__ +#elif defined (NTAPI_IMPORT) +#define __ntapi_api __attr_import__ +#elif defined (NTAPI_STATIC) +#define __ntapi_api +#else +#define __ntapi_api +#endif + +#endif diff --git a/include/ntapi/ntapi.h b/include/ntapi/ntapi.h index 7dc0ea6..d122db5 100644 --- a/include/ntapi/ntapi.h +++ b/include/ntapi/ntapi.h @@ -1,17 +1,7 @@ #ifndef _NTAPI_H_ #define _NTAPI_H_ -#if defined (NTAPI_EXPORT) -#define __ntapi_api __attr_export__ -#elif defined (NTAPI_IMPORT) -#define __ntapi_api __attr_import__ -#elif defined (NTAPI_STATIC) -#define __ntapi_api -#else -#define __ntapi_api -#endif - -#include "nt_abi.h" +#include "nt_api.h" #include "nt_compiler.h" #include "nt_status.h" #include "nt_crc32.h" diff --git a/project/headers.mk b/project/headers.mk index 4579849..4c908cd 100644 --- a/project/headers.mk +++ b/project/headers.mk @@ -1,5 +1,6 @@ API_HEADERS = \ $(SOURCE_DIR)/include/$(PACKAGE)/./nt_abi.h \ + $(SOURCE_DIR)/include/$(PACKAGE)/./nt_api.h \ $(SOURCE_DIR)/include/$(PACKAGE)/./nt_acl.h \ $(SOURCE_DIR)/include/$(PACKAGE)/./nt_argv.h \ $(SOURCE_DIR)/include/$(PACKAGE)/./nt_atom.h \ -- cgit v1.2.3