Skip to content
Snippets Groups Projects
Commit f46e7b13 authored by deuce's avatar deuce
Browse files

Remove _THREAD_SAFE and _REENTRANT defines for non-threaded builds.

parent ca7e08b0
No related branches found
No related tags found
No related merge requests found
...@@ -299,7 +299,6 @@ ifeq ($(os),linux) # Linux ...@@ -299,7 +299,6 @@ ifeq ($(os),linux) # Linux
endif endif
endif endif
MT_CFLAGS += -D_THREAD_SAFE -D_REENTRANT MT_CFLAGS += -D_THREAD_SAFE -D_REENTRANT
CFLAGS += -D_THREAD_SAFE -D_REENTRANT -D__EXTENSIONS__
ifeq ($(os),freebsd) # FreeBSD ifeq ($(os),freebsd) # FreeBSD
MT_CFLAGS += -DUSE_XP_SEMAPHORES MT_CFLAGS += -DUSE_XP_SEMAPHORES
MT_LDFLAGS += -pthread MT_LDFLAGS += -pthread
...@@ -329,7 +328,7 @@ else ...@@ -329,7 +328,7 @@ else
MT_CFLAGS += -D_POSIX_PTHREAD_SEMANTICS MT_CFLAGS += -D_POSIX_PTHREAD_SEMANTICS
MT_CFLAGS += -DUSE_XP_SEMAPHORES MT_CFLAGS += -DUSE_XP_SEMAPHORES
# This makes ctime_r() be the correct one. # This makes ctime_r() be the correct one.
CFLAGS += -D_POSIX_PTHREAD_SEMANTICS #CFLAGS += -D_POSIX_PTHREAD_SEMANTICS
else # Linux / Other UNIX else # Linux / Other UNIX
XP_SEM := 1 XP_SEM := 1
MT_CFLAGS += -DUSE_XP_SEMAPHORES MT_CFLAGS += -DUSE_XP_SEMAPHORES
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment