mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-19 13:41:11 +00:00
(svn r182) -Fix: [1024380] strgen diff (Warning fix + MorphOS fix). Removes the longest standing warning on compilation of strgen (tokai)
This commit is contained in:
parent
49773d7a9e
commit
091566b779
@ -12,6 +12,13 @@
|
||||
extern char _openttd_revision[];
|
||||
#endif
|
||||
|
||||
#ifdef __MORPHOS__
|
||||
#ifdef stderr
|
||||
#undef stderr
|
||||
#endif
|
||||
#define stderr stdout
|
||||
#endif // __MORPHOS__
|
||||
|
||||
/* Compiles a list of strings into a compiled string list */
|
||||
|
||||
#define lengthof(x) (sizeof(x)/sizeof(x[0]))
|
||||
@ -645,7 +652,7 @@ void write_strings_h(const char *filename)
|
||||
|
||||
fprintf(out,
|
||||
"\nenum {\n"
|
||||
"\tLANGUAGE_PACK_IDENT = 'GNAL',\n"
|
||||
"\tLANGUAGE_PACK_IDENT = 0x474E414C, // Big Endian value for 'LANG' (LE is 0x 4C 41 4E 47)\n"
|
||||
"\tLANGUAGE_PACK_VERSION = 0x%X,\n"
|
||||
"};\n", (unsigned int)_hash);
|
||||
|
||||
@ -683,8 +690,8 @@ void write_langfile(const char *filename, int show_todo)
|
||||
hdr.offsets[i] = TO_LE16(n);
|
||||
}
|
||||
|
||||
|
||||
hdr.ident = TO_LE32('GNAL');
|
||||
// see line 655: fprintf(..."\tLANGUAGE_PACK_IDENT = 0x474E414C,...)
|
||||
hdr.ident = TO_LE32(0x474E414C); // Big Endian value for 'LANG'
|
||||
hdr.version = TO_LE32(_hash);
|
||||
strcpy(hdr.name, _lang_name);
|
||||
strcpy(hdr.own_name, _lang_ownname);
|
||||
|
Loading…
Reference in New Issue
Block a user