msdos build correction

ENHANCED_SYMBOLS is defined by default in config.h.
The msdos build tried to #undef ENHANCED_SYMBOLS
in tilemap.c, but doing it in there created a mismatch
between the data struct definition for glyph_map in wintype.h
and the initializers generated in tilemap.c

Move the msdos build catch for ENHANCED_SYMBOLS to
one single place in config1.h so that the code and data agree.
This commit is contained in:
nhmall
2024-12-15 09:53:50 -05:00
parent e778d95ace
commit 2965ce4bc5
5 changed files with 14 additions and 11 deletions
+4
View File
@@ -31,6 +31,10 @@
#ifndef CROSSCOMPILE #ifndef CROSSCOMPILE
#define SHORT_FILENAMES #define SHORT_FILENAMES
#endif #endif
/* this is not fully-implemented yet for msdos */
#ifdef ENHANCED_SYMBOLS
#undef ENHANCED_SYMBOLS
#endif
#endif #endif
/* /*
+1 -1
View File
@@ -210,7 +210,7 @@ extern void docorner(int, int, int);
extern void end_glyphout(void); extern void end_glyphout(void);
extern void g_putch(int); extern void g_putch(int);
#ifdef ENHANCED_SYMBOLS #ifdef ENHANCED_SYMBOLS
#if defined(WIN32) || defined(UNIX) #if defined(WIN32) || defined(UNIX) || defined(MSDOS)
extern void g_pututf8(uint8 *); extern void g_pututf8(uint8 *);
#endif #endif
#endif /* ENHANCED_SYMBOLS */ #endif /* ENHANCED_SYMBOLS */
+9
View File
@@ -14,6 +14,7 @@
*/ */
#include "hack.h" #include "hack.h"
#include "wintty.h"
#ifndef STUBVIDEO #ifndef STUBVIDEO
#include "pcvideo.h" #include "pcvideo.h"
@@ -88,6 +89,14 @@ get_scr_size(void)
txt_get_scr_size(); txt_get_scr_size();
} }
#ifdef ENHANCED_SYMBOLS
void g_pututf8(uint8 *utf8str)
{
/* not implemented for msdos (yet) */
nhUse(utf8str);
}
#endif
/* /*
* -------------------------------------------------------------- * --------------------------------------------------------------
* The rest of this file is only compiled if NO_TERMS is defined. * The rest of this file is only compiled if NO_TERMS is defined.
-4
View File
@@ -54,10 +54,6 @@ extern void exit(int);
#endif #endif
#endif #endif
#if defined(CROSSCOMPILE) && defined(ENHANCED_SYMBOLS)
#undef ENHANCED_SYMBOLS
#endif
struct { struct {
int idx; int idx;
const char *tilelabel; const char *tilelabel;
-6
View File
@@ -27,12 +27,6 @@ extern void msmsg(const char *, ...);
#endif #endif
#endif #endif
#ifdef MSDOS
#ifdef ENHANCED_SYMBOLS
#undef ENHANCED_SYMBOLS
#endif
#endif /* MSDOS */
#ifndef NO_TERMS #ifndef NO_TERMS
#include "tcap.h" #include "tcap.h"
#endif #endif