[gjs/mozjs91] Meson: Define SSIZE_MAX for Visual Studio-style builds
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs/mozjs91] Meson: Define SSIZE_MAX for Visual Studio-style builds
- Date: Tue, 12 Oct 2021 09:05:46 +0000 (UTC)
commit e41f247f8c170d125ce968ed236ae7249e966178
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 936711b2..b8112c16 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]