summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--include/ptycon/ptycon_api.h4
-rw-r--r--project/extras.mk2
-rw-r--r--src/internal/ptycon_nolibc_impl.c2
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;