Annotation of pkgsrc/lang/python315/patches/patch-Include_pymacro.h, revision 1.2

1.2     ! adam        1: $NetBSD: patch-Include_pymacro.h,v 1.1 2026/10/10 10:34:19 adam Exp $
1.1       adam        2: 
                      3: Fix build on NetBSD: error: initializer element is not constant.
                      4: 
1.2     ! adam        5: --- Include/pymacro.h.orig     2026-10-25 16:57:51.000000000 +0000
1.1       adam        6: +++ Include/pymacro.h
1.2     ! adam        7: @@ -145,7 +145,7 @@
1.1       adam        8:  #define Py_CHARMASK(c) ((unsigned char)((c) & 0xff))
                      9:  
1.2     ! adam       10:  #if (defined(_Py_STDC_VERSION) && _Py_STDC_VERSION >= 201112L \
1.1       adam       11: -     && !defined(__cplusplus) && !defined(_MSC_VER))
                     12: +     && !defined(__cplusplus) && !defined(_MSC_VER) && !defined(__NetBSD__) && !defined(__sun))
                     13:  #  define Py_BUILD_ASSERT_EXPR(cond) \
                     14:      ((void)sizeof(struct { int dummy; _Static_assert(cond, #cond); }), \
                     15:       0)

CVSweb <webmaster@jp.NetBSD.org>