Fix building with recent djgpp2 gcc-6 version.

This commit is contained in:
Markus F.X.J. Oberhumer
2017-05-03 13:21:08 +02:00
parent 2e56fe82bb
commit 7ebed06393
11 changed files with 23 additions and 30 deletions
+3 -3
View File
@@ -33,7 +33,7 @@
#include "p_elf.h"
#if 1 && defined(__DJGPP__)
#if 1 && (ACC_OS_DOS32) && defined(__DJGPP__)
#include <crt0.h>
int _crt0_startup_flags = _CRT0_FLAG_UNIX_SBRK;
#endif
@@ -61,7 +61,7 @@ void options_t::reset()
o->preserve_timestamp = true;
o->console = CON_FILE;
#if defined(__DJGPP__)
#if (ACC_OS_DOS32) && defined(__DJGPP__)
o->console = CON_INIT;
#elif (USE_SCREEN_WIN32)
o->console = CON_INIT;
@@ -1413,7 +1413,7 @@ int __acc_cdecl_main main(int argc, char *argv[])
static char default_argv0[] = "upx";
// int cmdline_cmd = CMD_NONE;
#if 0 && defined(__DJGPP__)
#if 0 && (ACC_OS_DOS32) && defined(__DJGPP__)
// LFN=n may cause problems with 2.03's _rename and mkdir under WinME
putenv("LFN=y");
#endif