summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-10 19:16:54 -0500
committermidipix <writeonce@midipix.org>2016-12-10 19:16:54 -0500
commit5cf966326db0ee532a3e1c3a922cb1d4db82d321 (patch)
tree38991996420b645a723ef831df188d55686c73c0
parentefa013f6b615c3c960f3ebd796b11f199667620f (diff)
downloaddalist-5cf966326db0ee532a3e1c3a922cb1d4db82d321.tar.bz2
dalist-5cf966326db0ee532a3e1c3a922cb1d4db82d321.tar.xz
midipix free-standing environment: adjust to forthcoming feature test macro.
-rw-r--r--include/dalist/dalist_env.h2
-rw-r--r--project/extras.mk2
-rw-r--r--src/dalist_entry_point.c2
-rw-r--r--src/dalist_impl.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/include/dalist/dalist_env.h b/include/dalist/dalist_env.h
index 8c8ab0f..ee27f58 100644
--- a/include/dalist/dalist_env.h
+++ b/include/dalist/dalist_env.h
@@ -1,7 +1,7 @@
#ifndef DALIST_ENV_H
#define DALIST_ENV_H
-#if defined (MIDIPIX_FREESTANDING)
+#if defined (_MIDIPIX_FREESTANDING)
#include <psxtypes/psxtypes.h>
diff --git a/project/extras.mk b/project/extras.mk
index 24a9529..9033403 100644
--- a/project/extras.mk
+++ b/project/extras.mk
@@ -2,7 +2,7 @@ CFLAGS_SHARED_ATTR += -DDALIST_EXPORT
CFLAGS_STATIC_ATTR += -DDALIST_STATIC
ifeq ($(OS_BINFMT),PE)
- CFLAGS_CONFIG += -DMIDIPIX_FREESTANDING -D__NT$(HOST_BITS)
+ CFLAGS_CONFIG += -D_MIDIPIX_FREESTANDING -D__NT$(HOST_BITS)
CFLAGS_CONFIG += -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__
CFLAGS_CONFIG += -UWIN64 -U_WIN64 -U__WIN64 -U__WIN64__
diff --git a/src/dalist_entry_point.c b/src/dalist_entry_point.c
index c8d37aa..d8d1a53 100644
--- a/src/dalist_entry_point.c
+++ b/src/dalist_entry_point.c
@@ -1,4 +1,4 @@
-#ifdef MIDIPIX_FREESTANDING
+#ifdef _MIDIPIX_FREESTANDING
#include <dalist/dalist.h>
diff --git a/src/dalist_impl.h b/src/dalist_impl.h
index d80c65e..3207600 100644
--- a/src/dalist_impl.h
+++ b/src/dalist_impl.h
@@ -17,7 +17,7 @@ typedef dalist_memfn_nt_allocvm memfn_allocvm;
#define NT_MEM_RELEASE (0x8000u)
/* host environment */
-#if defined (MIDIPIX_FREESTANDING)
+#if defined (_MIDIPIX_FREESTANDING)
#define dalist_errno(x) x
#define PROT_READ 1
#define PROT_WRITE 2