From 7acf9aa86275a24b468786d6ea9f308ae33f011c Mon Sep 17 00:00:00 2001 From: grischka Date: Tue, 25 Apr 2017 21:01:54 +0200 Subject: final adjustments for release - configure/Makefiles: minor adjustments - build-tcc.bat: add -static to gcc options (avoids libgcc_s*.dll dependency with some mingw versions) - tccpe.c/tcctools.c: eliminate MAX_PATH (not available for cross compilers) - tccasm.c: use uint64_t/strtoull in unary() (unsigned long sometimes is only uint32_t, as always on windows) - tccgen.c: Revert (f077d16c) "tccgen: gen_cast: cast FLOAT to DOUBLE" Was a rather experimental, tentative commit, not really necessary and somewhat ugly too. - cleanup recent osx support: - Makefile/libtcc.c: cleanup copy&paste code - tccpp.c: restore deleted function --- win32/build-tcc.bat | 2 +- win32/include/_mingw.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'win32') diff --git a/win32/build-tcc.bat b/win32/build-tcc.bat index 880a25f..9a9184b 100644 --- a/win32/build-tcc.bat +++ b/win32/build-tcc.bat @@ -5,7 +5,7 @@ @echo off setlocal -set CC=gcc -Os -s +set CC=gcc -Os -s -static set /p VERSION= < ..\VERSION set INST= set DOC=no diff --git a/win32/include/_mingw.h b/win32/include/_mingw.h index 41247e6..2fc9798 100644 --- a/win32/include/_mingw.h +++ b/win32/include/_mingw.h @@ -165,5 +165,6 @@ typedef struct localeinfo_struct _locale_tstruct,*_locale_t; #define __C89_NAMELESS #define __MINGW_EXTENSION #define WINAPI_FAMILY_PARTITION(X) 1 +#define MINGW_HAS_SECURE_API #endif /* __MINGW_H */ -- cgit v1.3.1