Annotation of pkgsrc/lang/python311/patches/patch-Include_pymacro.h, revision 1.1

1.1     ! jperkin     1: $NetBSD$
        !             2: 
        !             3: Do not define static_assert in C++ code.
        !             4: 
        !             5: --- Include/pymacro.h.orig     2023-06-06 22:00:27.000000000 +0000
        !             6: +++ Include/pymacro.h
        !             7: @@ -19,7 +19,7 @@
        !             8:  // not C++, and only for C11-17.
        !             9:  #if !defined(static_assert) && (defined(__GNUC__) || defined(__clang__)) \
        !            10:       && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L \
        !            11: -     && __STDC_VERSION__ <= 201710L
        !            12: +     && __STDC_VERSION__ <= 201710L && !defined(__cplusplus)
        !            13:  #  define static_assert _Static_assert
        !            14:  #endif
        !            15:  

CVSweb <webmaster@jp.NetBSD.org>