summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-11 22:03:56 -0500
committermidipix <writeonce@midipix.org>2016-12-11 22:27:48 -0500
commite419cc65ad36df725d6a75d63f75ec6fa554e990 (patch)
treef63ee4a6977c22bd8287b7be94cc54b4ea0cc1b1
parent414ad3febdf628089d2b8be93405a5f1023b06d0 (diff)
downloadntapi-e419cc65ad36df725d6a75d63f75ec6fa554e990.tar.bz2
ntapi-e419cc65ad36df725d6a75d63f75ec6fa554e990.tar.xz
api headers: added nt_api.h, supporting visual studio and hosted environments.
-rw-r--r--include/ntapi/nt_api.h17
-rw-r--r--include/ntapi/ntapi.h12
-rw-r--r--project/headers.mk1
3 files changed, 19 insertions, 11 deletions
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 \