Fix DJGPP build. Thanks to Max Vasilyev 2:5057/77
This commit is contained in:
parent
9a5aa5ec88
commit
8ca25dc8ec
@ -183,7 +183,7 @@ endif
|
||||
|
||||
# force not to use coprocessor features in DOS, if you have one you may remove this
|
||||
ifeq ($(PLATFORM),djg)
|
||||
STDLIBS+= -lwmemu
|
||||
#STDLIBS+= -lwmemu
|
||||
endif
|
||||
|
||||
BIN=bin
|
||||
|
@ -18,6 +18,10 @@
|
||||
# licv192b.zip
|
||||
# mak3791b.zip
|
||||
# sed421b.zip
|
||||
# And from http://www.delorie.com/pub/djgpp/current/v2misc/ following more files:
|
||||
# wmemu21b.zip
|
||||
# And from http://www.delorie.com/pub/djgpp/current/v2tk/ following more files:
|
||||
# llocl02b.zip
|
||||
# Next extract all these files into one directory (for example, C:\DJGPP\)
|
||||
# Next set enviroment variable DJGPP to C:\DJGPP\DJGPP.ENV
|
||||
# Last add the directory "C:\DJGPP\" into PATH enviroment variable.
|
||||
|
@ -92,6 +92,10 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(__DJGPP__)
|
||||
#undef __UNIX__
|
||||
#endif
|
||||
|
||||
#ifdef __GNUC__
|
||||
#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
|
||||
#error You definetly need to upgrade your gcc at least up to 2.8.x
|
||||
|
@ -101,7 +101,7 @@ const int ERR_MPTR = 15;
|
||||
|
||||
extern int errorlevel;
|
||||
extern int error_exit;
|
||||
extern char* etext[];
|
||||
extern const char* etext[];
|
||||
void ErrorExit(int type);
|
||||
|
||||
|
||||
|
@ -1051,7 +1051,7 @@ void GVid::resize_screen(int columns, int rows) {
|
||||
bufwrd = (vatch*)throw_xrealloc(bufwrd, (numcols+1)*sizeof(vatch));
|
||||
bufansi = (vchar*)throw_xrealloc(bufansi, 1+(11*numcols));
|
||||
|
||||
#if defined(__UNIX__) && !defined(__USE_NCURSES__)
|
||||
#if defined(__UNIX__) && !defined(__USE_NCURSES__) && !defined(__DJGPP__)
|
||||
dmaptr = (gdma)throw_xrealloc(dmaptr, (rows+1)*columns*sizeof(word));
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user