Fix DJGPP build. Thanks to Max Vasilyev 2:5057/77

This commit is contained in:
Stas Degteff
2010-03-23 19:06:16 +00:00
parent 9a5aa5ec88
commit 8ca25dc8ec
5 changed files with 11 additions and 3 deletions

View File

@@ -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

View File

@@ -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);

View File

@@ -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
}