Annotation of pkgsrc/lang/python313/patches/patch-Include_pymacro.h, revision 1.3
1.3 ! adam 1: $NetBSD: patch-Include_pymacro.h,v 1.2 2024/10/21 10:21:27 jperkin Exp $
1.1 adam 2:
3: Fix build on NetBSD: error: initializer element is not constant.
4:
1.3 ! adam 5: --- Include/pymacro.h.orig 2025-02-04 14:51:09.000000000 +0000
1.1 adam 6: +++ Include/pymacro.h
7: @@ -47,7 +47,7 @@
8: #define Py_CHARMASK(c) ((unsigned char)((c) & 0xff))
9:
10: #if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L \
1.3 ! adam 11: - && !defined(__cplusplus) && !defined(_MSC_VER))
! 12: + && !defined(__cplusplus) && !defined(_MSC_VER) && !defined(__NetBSD__) && !defined(__sun))
1.1 adam 13: # define Py_BUILD_ASSERT_EXPR(cond) \
14: ((void)sizeof(struct { int dummy; _Static_assert(cond, #cond); }), \
15: 0)
CVSweb <webmaster@jp.NetBSD.org>