diff options
author | midipix <writeonce@midipix.org> | 2016-11-19 09:12:54 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-19 09:12:54 -0500 |
commit | 69fbb628d53c3aec00385b07ed39ea8e285571bb (patch) | |
tree | 883fa9198c0cd55cabf487568ce9944132cc98a3 | |
parent | 7853748e44b8c4f24573b9e97e9ab21c8ee2a0d1 (diff) | |
download | ptycon-69fbb628d53c3aec00385b07ed39ea8e285571bb.tar.bz2 ptycon-69fbb628d53c3aec00385b07ed39ea8e285571bb.tar.xz |
ptycon_api.h: fix export/import inconsistency.
-rw-r--r-- | include/ptycon/ptycon_api.h | 4 | ||||
-rw-r--r-- | project/extras.mk | 2 | ||||
-rw-r--r-- | src/internal/ptycon_nolibc_impl.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/include/ptycon/ptycon_api.h b/include/ptycon/ptycon_api.h index 35ba2a4..e20d1d8 100644 --- a/include/ptycon/ptycon_api.h +++ b/include/ptycon/ptycon_api.h @@ -19,9 +19,9 @@ /* ptyc_api */ #ifndef PTYC_APP -#if defined (PTYC_BUILD) +#if defined (PTYC_EXPORT) #define ptyc_api ptyc_export -#elif defined (PTYC_SHARED) +#elif defined (PTYC_IMPORT) #define ptyc_api ptyc_import #elif defined (PTYC_STATIC) #define ptyc_api diff --git a/project/extras.mk b/project/extras.mk index 6f23834..25fc706 100644 --- a/project/extras.mk +++ b/project/extras.mk @@ -1,4 +1,4 @@ -CFLAGS_SHARED_ATTR += -DPTYC_PRE_ALPHA -DPTYC_BUILD +CFLAGS_SHARED_ATTR += -DPTYC_PRE_ALPHA -DPTYC_EXPORT CFLAGS_STATIC_ATTR += -DPTYC_PRE_ALPHA -DPTYC_STATIC CFLAGS_APP_ATTR += -DPTYC_APP diff --git a/src/internal/ptycon_nolibc_impl.c b/src/internal/ptycon_nolibc_impl.c index 8a32fd7..245f157 100644 --- a/src/internal/ptycon_nolibc_impl.c +++ b/src/internal/ptycon_nolibc_impl.c @@ -61,7 +61,7 @@ char * ptyc_strrchr(const char * ch, int c) return 0; } -#ifdef PTYC_BUILD +#ifdef PTYC_EXPORT int __stdcall ptycon_entry_point(void * hinstance, uint32_t reason, void * reserved) { (void)hinstance; |