summaryrefslogtreecommitdiff
path: root/emulators/mame/patches/patch-src_emu_hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/mame/patches/patch-src_emu_hash.c')
-rw-r--r--emulators/mame/patches/patch-src_emu_hash.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/emulators/mame/patches/patch-src_emu_hash.c b/emulators/mame/patches/patch-src_emu_hash.c
new file mode 100644
index 00000000000..78e1e7580ce
--- /dev/null
+++ b/emulators/mame/patches/patch-src_emu_hash.c
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_emu_hash.c,v 1.1 2011/04/04 12:09:03 wiz Exp $
+
+toupper is a macro on NetBSD.
+Sent upstream.
+
+--- src/emu/hash.c.orig 2011-03-29 09:38:54.000000000 +0000
++++ src/emu/hash.c
+@@ -658,7 +658,7 @@ const char *hash_collection::macro_strin
+ buffer.reset();
+ for (hash_base *hash = m_hashlist.first(); hash != NULL; hash = hash->next())
+ {
+- buffer.cat(temp.cpy(hash->name()).toupper());
++ buffer.cat(temp.cpy(hash->name()).upper());
+ buffer.cat("(").cat(hash->string(temp)).cat(") ");
+ }
+