[babl/wip/msvc: 14/20] meson.build: Define strcasecmp() on Visual Studio
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl/wip/msvc: 14/20] meson.build: Define strcasecmp() on Visual Studio
- Date: Wed, 22 Jan 2020 08:10:44 +0000 (UTC)
commit 365801328b87bb411dd803ab66b0bf7db466b0f3
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Jan 20 17:09:25 2020 +0800
meson.build: Define strcasecmp() on Visual Studio
The Visual Studio equivilant of this function is _stricmp(), so use it here
meson.build | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/meson.build b/meson.build
index 77d816ba3..901807381 100644
--- a/meson.build
+++ b/meson.build
@@ -179,6 +179,7 @@ if cc.get_id() == 'msvc'
'-DUSE_ALLOCA', # Use alloca via _alloca()
'-Dalloca=_alloca',
'-Dstrtok_r=strtok_s', # Use strtok_s in place of strtok_r
+ '-Dstrcasecmp=_stricmp', # Use _stricmp in place of strcasecmp
'-wd4244', # Silence some unneeded compiler warnings
'-wd4305'
]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]