shithub: puzzles

Download patch

ref: a637dfd162c6ea99125741c5fc8e6dee15ac3728
parent: d4c1f40bd25a2241d47ff5cfaa8b0e2a3906b265
author: sirjofri <sirjofri@sirjofri.de>
date: Fri May 24 07:56:19 EDT 2024

makes code work with upstream npe (undef PI)

--- a/puzzles.h
+++ b/puzzles.h
@@ -16,6 +16,11 @@
 #include <limits.h> /* for UINT_MAX */
 #include <stdbool.h>
 
+/* plan9 npe defines PI already, get rid of it */
+#ifdef PI
+#undef PI
+#endif
+
 #define PI 3.141592653589793238462643383279502884197169399
 #define ROOT2 1.414213562373095048801688724209698078569672