[gjs/mozjs91: 24/25] Meson: Define SSIZE_MAX for Visual Studio-style builds




commit 8d6046a1af1e09f28cde01abb495e4d727307676
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Tue Oct 12 17:01:34 2021 +0800

    Meson: Define SSIZE_MAX for Visual Studio-style builds
    
    Like ssize_t, the Microsoft Compiler/SDK headers does not define SSIZE_MAX,
    so we similarly define it to G_MAXSSIZE

 meson.build | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/meson.build b/meson.build
index 6be0dc48..22a1de86 100644
--- a/meson.build
+++ b/meson.build
@@ -70,6 +70,7 @@ if cc.get_argument_syntax() == 'msvc'
     add_project_arguments(cxx.get_supported_arguments([
         '-Dssize_t=gssize',  # Windows SDK/MSVC headers do not come with ssize_t
         '-DNOMINMAX',  # We don't want 'min' or 'max' to interfere
+        '-DSSIZE_MAX=G_MAXSSIZE',  # Windows SDK/MSVC headers do not come with SSIZE_MAX
         ]), language: ['cpp', 'c'])
 else
     if get_option('bsymbolic_functions')


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