From 2902772ac2be3b74f2825d1982b2a573add60f12 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 19 Nov 2016 08:34:16 -0500 Subject: apimagic_api.h: fix export/import inconsistency. --- include/apimagic/apimagic_api.h | 4 ++-- project/extras.mk | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/apimagic/apimagic_api.h b/include/apimagic/apimagic_api.h index 263e2ee..f35deaf 100644 --- a/include/apimagic/apimagic_api.h +++ b/include/apimagic/apimagic_api.h @@ -19,9 +19,9 @@ /* amgc_api */ #ifndef AMGC_APP -#if defined (AMGC_BUILD) +#if defined (AMGC_EXPORT) #define amgc_api amgc_export -#elif defined (AMGC_SHARED) +#elif defined (AMGC_IMPORT) #define amgc_api amgc_import #elif defined (AMGC_STATIC) #define amgc_api diff --git a/project/extras.mk b/project/extras.mk index da2b171..807f5ca 100644 --- a/project/extras.mk +++ b/project/extras.mk @@ -1,4 +1,4 @@ -CFLAGS_SHARED_ATTR += -DAMGC_PRE_ALPHA -DAMGC_BUILD +CFLAGS_SHARED_ATTR += -DAMGC_PRE_ALPHA -DAMGC_EXPORT CFLAGS_STATIC_ATTR += -DAMGC_PRE_ALPHA -DAMGC_STATIC CFLAGS_APP_ATTR += -DAMGC_APP -- cgit v1.2.3