Fix DJGPP build. Thanks to Max Vasilyev 2:5057/77
This commit is contained in:
@@ -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