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




commit 49dd7b4b13928451de4cb27b10fe498106dc224b
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 95d5b0654..136e812b3 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]