[babl/wip/msvc] meson.build: Define strcasecmp() on Visual Studio



commit 572fd27e4d4dd4632da54a6fa4e4783c17decb63
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 cd5a89f29..58825e05f 100644
--- a/meson.build
+++ b/meson.build
@@ -178,6 +178,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]