summaryrefslogtreecommitdiffstats
path: root/tools/genlang
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2009-02-04 20:59:27 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2009-02-04 20:59:27 +0000
commite8da4477297ffb12603680f09fa9b2cd30d0b7b5 (patch)
treebb26896c839fd6a901ae8b4cd6223d824d592c27 /tools/genlang
parentb0a3a563a139507cc8c1b679df9b6dd37dee3ec1 (diff)
downloadrockbox-e8da4477297ffb12603680f09fa9b2cd30d0b7b5.tar.gz
rockbox-e8da4477297ffb12603680f09fa9b2cd30d0b7b5.zip
Commit FS#9494 by Yoshihisa Uchida: add support for building the simulators under Windows using MingW
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19923 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/genlang')
-rwxr-xr-xtools/genlang6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/genlang b/tools/genlang
index f4eb698a8f..21cef9966b 100755
--- a/tools/genlang
+++ b/tools/genlang
@@ -540,6 +540,10 @@ if($prefix) {
open(CFILE, ">$prefix.c") ||
die "Error: couldn't create file $prefix.c\n";
+ # get header file name
+ $headername = "$prefix.h";
+ $headername =~ s/(.*\/)*//;
+
print HFILE <<MOO
/* This file was automatically generated using genlang */
/*
@@ -564,7 +568,7 @@ MOO
/* This file was automaticly generated using genlang, the strings come
from "$input" */
-#include "$prefix.h"
+#include "$headername"
unsigned char *language_strings[LANG_LAST_INDEX_IN_ARRAY];
const unsigned char language_builtin[] =