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 --- tccpe.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'tccpe.c') diff --git a/tccpe.c b/tccpe.c index 2b0ea9a..91b1a32 100644 --- a/tccpe.c +++ b/tccpe.c @@ -28,10 +28,6 @@ #define strnicmp strncasecmp #endif -#ifndef MAX_PATH -#define MAX_PATH 260 -#endif - #ifdef TCC_TARGET_X86_64 # define ADDR3264 ULONGLONG # define REL_TYPE_DIRECT R_X86_64_64 @@ -907,7 +903,7 @@ static void pe_build_exports(struct pe_info *pe) struct pe_sort_sym **sorted, *p; FILE *op; - char buf[MAX_PATH]; + char buf[260]; const char *dllname; const char *name; -- cgit v1.3.1