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

View File

@@ -31,6 +31,10 @@
#ifndef CROSSCOMPILE
#define SHORT_FILENAMES
#endif
/* this is not fully-implemented yet for msdos */
#ifdef ENHANCED_SYMBOLS
#undef ENHANCED_SYMBOLS
#endif
#endif
/*

View File

@@ -210,7 +210,7 @@ extern void docorner(int, int, int);
extern void end_glyphout(void);
extern void g_putch(int);
#ifdef ENHANCED_SYMBOLS
#if defined(WIN32) || defined(UNIX)
#if defined(WIN32) || defined(UNIX) || defined(MSDOS)
extern void g_pututf8(uint8 *);
#endif
#endif /* ENHANCED_SYMBOLS */

View File

@@ -14,6 +14,7 @@
*/
#include "hack.h"
#include "wintty.h"
#ifndef STUBVIDEO
#include "pcvideo.h"
@@ -88,6 +89,14 @@ get_scr_size(void)
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.

View File

@@ -54,10 +54,6 @@ extern void exit(int);
#endif
#endif
#if defined(CROSSCOMPILE) && defined(ENHANCED_SYMBOLS)
#undef ENHANCED_SYMBOLS
#endif
struct {
int idx;
const char *tilelabel;

View File

@@ -27,12 +27,6 @@ extern void msmsg(const char *, ...);
#endif
#endif
#ifdef MSDOS
#ifdef ENHANCED_SYMBOLS
#undef ENHANCED_SYMBOLS
#endif
#endif /* MSDOS */
#ifndef NO_TERMS
#include "tcap.h"
#endif