Fix "'givaro_bool_constant' does not name a type" error.
authorDebian Math Team <team+math@tracker.debian.org>
Mon, 25 Apr 2022 18:14:15 +0000 (19:14 +0100)
committerDoug Torrance <dtorrance@debian.org>
Mon, 25 Apr 2022 18:14:15 +0000 (19:14 +0100)
Origin: https://github.com/Macaulay2/M2/commit/ff0f0cb (reversed)
Bug: https://github.com/Macaulay2/M2/issues/2347
Last-Update: 2021-12-18

Gbp-Pq: Name givaro-bool-constant.patch

M2/Macaulay2/e/aring-gf-givaro.hpp
M2/Macaulay2/e/aring-zzp-ffpack.hpp

index ddd57a780a5795f21ff78a376ba960f56e037f95..a3bf01d5788208f2209b48a6c40aa50168ce94fc 100644 (file)
@@ -40,7 +40,6 @@ namespace M2 {
 };
 
 #else
-#define bool_constant givaro_bool_constant
 #include <givaro/gfq.h>
 #include <givaro/givpower.h>
 #include <givaro/givtimer.h>
@@ -50,7 +49,7 @@ namespace M2 {
 #include <givaro/givintnumtheo.h>
 #include <givaro/givpower.h>
 #include <givaro/givpoly1padic.h>
-#undef bool_constant
+
 #include <type_traits>
 
 namespace M2 {
index 8fa8fc5157ab09e3fe8e46bf910a25f5440cebc8..6ec343f64f02a37bfd85c10ed5a40f8c872243e0 100644 (file)
@@ -17,9 +17,8 @@
 
 // this fixes a weird problem in the package "openblas" of Arch Linux, which somehow fails to declare this function:
 extern "C" void openblas_set_num_threads(int num_threads);
-#define bool_constant givaro_bool_constant
+
 #include <fflas-ffpack/ffpack/ffpack.h>
-#undef bool_constant
 #pragma GCC diagnostic pop
 
 namespace M2 {