[gtk/wip/fanc999/meson.msvc: 168/168] itests/testtreelistmodel.c: Use g_ascii_strcasecmp()
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/fanc999/meson.msvc: 168/168] itests/testtreelistmodel.c: Use g_ascii_strcasecmp()
- Date: Tue, 9 Oct 2018 08:41:37 +0000 (UTC)
commit 63a2080a48db20e54c0a2c3c7cf1563076dc4a51
Author: Chun-wei Fan <fanc999 yahoo com tw>
Date: Tue Oct 9 16:38:09 2018 +0800
itests/testtreelistmodel.c: Use g_ascii_strcasecmp()
...instead of strcasecmp(), which is not supported on all supported
compilers.
tests/testtreelistmodel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/tests/testtreelistmodel.c b/tests/testtreelistmodel.c
index ad9f0f4c59..88f219797b 100644
--- a/tests/testtreelistmodel.c
+++ b/tests/testtreelistmodel.c
@@ -131,7 +131,7 @@ compare_files (gconstpointer first,
first_path = g_file_get_path (first_file);
second_path = g_file_get_path (second_file);
- result = strcasecmp (first_path, second_path);
+ result = g_ascii_strcasecmp (first_path, second_path);
g_free (first_path);
g_free (second_path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]