13
0

use g_strcasecmp() instead of strcasecmp() which doesn't exist with MSVC (some versions, at least)

This commit is contained in:
Paul Davis 2013-10-04 12:50:03 -04:00
parent 1344014cbd
commit 028cd5660f

View File

@ -33,9 +33,9 @@
#include <assert.h>
#include <string.h>
#include <strings.h>
#include <stdint.h>
#include <cairo/cairo.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
@ -732,13 +732,13 @@ piano_keyboard_set_keyboard_layout(PianoKeyboard *pk, const char *layout)
{
assert(layout);
if (!strcasecmp(layout, "QWERTY")) {
if (!g_strcasecmp(layout, "QWERTY")) {
bind_keys_qwerty(pk);
} else if (!strcasecmp(layout, "QWERTZ")) {
} else if (!g_strcasecmp(layout, "QWERTZ")) {
bind_keys_qwertz(pk);
} else if (!strcasecmp(layout, "AZERTY")) {
} else if (!g_strcasecmp(layout, "AZERTY")) {
bind_keys_azerty(pk);
} else {