diff options
-rw-r--r-- | include/ntapi/nt_api.h | 17 | ||||
-rw-r--r-- | include/ntapi/ntapi.h | 12 | ||||
-rw-r--r-- | project/headers.mk | 1 |
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 \ |