diff options
author | darkvater <darkvater@openttd.org> | 2004-09-08 15:01:12 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2004-09-08 15:01:12 +0000 |
commit | 091566b7796fbb3916afab4a354e283e11683231 (patch) | |
tree | 852909eaa7aa649fd013b4f0126d2617ec0e3817 /strgen | |
parent | 49773d7a9e40bd25ed0f51b8c584a500c8e6183e (diff) | |
download | openttd-091566b7796fbb3916afab4a354e283e11683231.tar.xz |
(svn r182) -Fix: [1024380] strgen diff (Warning fix + MorphOS fix). Removes the longest standing warning on compilation of strgen (tokai)
Diffstat (limited to 'strgen')
-rw-r--r-- | strgen/strgen.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/strgen/strgen.c b/strgen/strgen.c index a1db3a839..a6107329c 100644 --- a/strgen/strgen.c +++ b/strgen/strgen.c @@ -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); |