Locale fixes, header lowercasing removed
This commit is contained in:
@@ -47,10 +47,12 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
extern char tl[256], tu[256];
|
||||
inline int tolower(int c) { return tl[c]; }
|
||||
inline int toupper(int c) { return tu[c]; }
|
||||
inline int _nls_tolower(int c) { return tl[c]; }
|
||||
inline int _nls_toupper(int c) { return tu[c]; }
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#define tolower(a) _nls_tolower((unsigned char)(a))
|
||||
#define toupper(a) _nls_toupper((unsigned char)(a))
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@@ -84,7 +84,7 @@ int g_init_os(int flags) {
|
||||
if((cpu.al() == 0xff) and (cpu.ch() > 3))
|
||||
winapi = ANSIPLUS;
|
||||
}
|
||||
#ifdef __DJGPP__
|
||||
#if 0 // __DJGPP__: get djlocale patch instead
|
||||
// reload internal djgpp structures for toupper/tolower
|
||||
int segment, selector;
|
||||
|
||||
|
Reference in New Issue
Block a user