Annotation of pkgsrc/lang/python27/patches/patch-Include_asdl.h, revision 1.1
1.1 ! tnn 1: $NetBSD$
! 2:
! 3: * don't redefine bool
! 4:
! 5: --- Include/asdl.h.orig 2025-04-29 09:29:58.921412365 +0000
! 6: +++ Include/asdl.h
! 7: @@ -6,8 +6,12 @@ typedef PyObject * string;
! 8: typedef PyObject * object;
! 9:
! 10: #ifndef __cplusplus
! 11: +#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
! 12: +#include <stdbool.h>
! 13: +#else
! 14: typedef enum {false, true} bool;
! 15: #endif
! 16: +#endif
! 17:
! 18: /* It would be nice if the code generated by asdl_c.py was completely
! 19: independent of Python, but it is a goal the requires too much work
CVSweb <webmaster@jp.NetBSD.org>