[babl/wip/msvc] meson.build: Use strtok_s() on MSVC in place of strtok_r()



commit 54dc4b85a67781ef7e8ab0d8ca20d3dd86edaf49
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Mon Jan 20 16:38:18 2020 +0800

    meson.build: Use strtok_s() on MSVC in place of strtok_r()
    
    Visual Studio supports strtok_s(), which is semantically similar to strtok_s()

 meson.build | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/meson.build b/meson.build
index f5151bc66..cd5a89f29 100644
--- a/meson.build
+++ b/meson.build
@@ -177,6 +177,7 @@ if cc.get_id() == 'msvc'
     '-D_USE_MATH_DEFINES', # Allow more math macro usage
     '-DUSE_ALLOCA',        # Use alloca via _alloca()
     '-Dalloca=_alloca',
+    '-Dstrtok_r=strtok_s', # Use strtok_s in place of strtok_r
     '-wd4244',             # Silence some unneeded compiler warnings
     '-wd4305'
   ]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]