From 5cf966326db0ee532a3e1c3a922cb1d4db82d321 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 10 Dec 2016 19:16:54 -0500 Subject: midipix free-standing environment: adjust to forthcoming feature test macro. --- include/dalist/dalist_env.h | 2 +- project/extras.mk | 2 +- src/dalist_entry_point.c | 2 +- src/dalist_impl.h | 2 +- 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 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 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 -- cgit v1.2.3