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
Branches
Tags
No related merge requests found
......@@ -299,7 +299,6 @@ ifeq ($(os),linux) # Linux
endif
endif
MT_CFLAGS += -D_THREAD_SAFE -D_REENTRANT
CFLAGS += -D_THREAD_SAFE -D_REENTRANT -D__EXTENSIONS__
ifeq ($(os),freebsd) # FreeBSD
MT_CFLAGS += -DUSE_XP_SEMAPHORES
MT_LDFLAGS += -pthread
......@@ -329,7 +328,7 @@ else
MT_CFLAGS += -D_POSIX_PTHREAD_SEMANTICS
MT_CFLAGS += -DUSE_XP_SEMAPHORES
# This makes ctime_r() be the correct one.
CFLAGS += -D_POSIX_PTHREAD_SEMANTICS
#CFLAGS += -D_POSIX_PTHREAD_SEMANTICS
else # Linux / Other UNIX
XP_SEM := 1
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