From 59dda176a9ae54404d3f8074c9226e981b638ab3 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 19 Nov 2016 08:42:22 -0500 Subject: ntapi.h: fix export/import inconsistency. --- include/ntapi/ntapi.h | 4 ++-- project/extras.mk | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/ntapi/ntapi.h b/include/ntapi/ntapi.h index 22db615..6247dc0 100644 --- a/include/ntapi/ntapi.h +++ b/include/ntapi/ntapi.h @@ -1,9 +1,9 @@ #ifndef _NTAPI_H_ #define _NTAPI_H_ -#if defined (NTAPI_BUILD) +#if defined (NTAPI_EXPORT) #define __ntapi_api __attr_export__ -#elif defined (NTAPI_SHARED) +#elif defined (NTAPI_IMPORT) #define __ntapi_api __attr_import__ #elif defined (NTAPI_STATIC) #define __ntapi_api diff --git a/project/extras.mk b/project/extras.mk index 6c7c392..1eeb26e 100644 --- a/project/extras.mk +++ b/project/extras.mk @@ -1,4 +1,4 @@ -CFLAGS_SHARED_ATTR += -DNTAPI_BUILD +CFLAGS_SHARED_ATTR += -DNTAPI_EXPORT CFLAGS_STATIC_ATTR += -DNTAPI_STATIC CFLAGS_CONFIG += -DMIDIPIX_FREESTANDING -D__NT$(HOST_BITS) -- cgit v1.2.3