mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-20 19:42:30 -08:00
Export ECL_THREADS configuration flag when processing msvc/ecl/config.h.msvc6
This commit is contained in:
parent
8edb94230e
commit
28f2f9f4ca
3 changed files with 8 additions and 3 deletions
|
|
@ -102,7 +102,7 @@ LDFLAGS = /link /nologo /nodefaultlib:libcmt /nodefaultlib:libcmtd /nodefaultlib
|
|||
ENV_EXPORT = cl_env,DATA
|
||||
!else
|
||||
ENV_EXPORT = ecl_process_env
|
||||
CFLAGS = $(CFLAGS) /DECL_THREADS
|
||||
CFLAGS = $(CFLAGS)
|
||||
DEF = ecl-threads.def
|
||||
!endif
|
||||
|
||||
|
|
|
|||
|
|
@ -5,9 +5,11 @@ top_srcdir = ..\..\src
|
|||
srcdir = ..\..\src\c
|
||||
|
||||
!if "$(ECL_THREADS)" != ""
|
||||
ECL_THREADS_FLAG=1
|
||||
THREADS_OBJ= threads.obj
|
||||
THREADS_FLAGS= -DECL_THREADS
|
||||
!else
|
||||
ECL_THREADS_FLAG=0
|
||||
THREADS_OBJ=
|
||||
THREADS_FLAGS=
|
||||
!endif
|
||||
|
|
@ -100,6 +102,7 @@ $(DPP): $(srcdir)/dpp.c $(srcdir)/symbols_list2.h ../ecl/config.h
|
|||
for %i in ($(HFILES)) do $(CP) %i ..\ecl
|
||||
cut.exe "@ECL_FPE_CODE@" "$(srcdir:\=/)/arch/fpe_x86.c" \
|
||||
"@ECL_VERSION_NUMBER@" "$(ECL_VERSION_NUMBER)" \
|
||||
"@ECL_THREADS@" "$(ECL_THREADS_FLAG)" \
|
||||
< ..\ecl\config.h.msvc6 > $@
|
||||
|
||||
#
|
||||
|
|
|
|||
|
|
@ -58,9 +58,11 @@
|
|||
#include <ecl/gmp.h>
|
||||
|
||||
/* Userland threads? */
|
||||
/* #undef ECL_THREADS */
|
||||
#ifdef ECL_THREADS
|
||||
#define ECL_THREADS @ECL_THREADS@
|
||||
#if ECL_THREADS
|
||||
# define GC_WIN32_THREADS
|
||||
#else
|
||||
# undef ECL_THREADS
|
||||
#endif
|
||||
|
||||
/* __thread thread-local variables? */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue