From 496ff252e0d8c845ad7d646acf72c51d9bf86fd6 Mon Sep 17 00:00:00 2001 From: Debian Math Team Date: Sun, 1 May 2022 19:10:02 +0100 Subject: [PATCH] Fix "'givaro_bool_constant' does not name a type" error. 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 | 3 +-- M2/Macaulay2/e/aring-zzp-ffpack.hpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/M2/Macaulay2/e/aring-gf-givaro.hpp b/M2/Macaulay2/e/aring-gf-givaro.hpp index ddd57a7..a3bf01d 100644 --- a/M2/Macaulay2/e/aring-gf-givaro.hpp +++ b/M2/Macaulay2/e/aring-gf-givaro.hpp @@ -40,7 +40,6 @@ namespace M2 { }; #else -#define bool_constant givaro_bool_constant #include #include #include @@ -50,7 +49,7 @@ namespace M2 { #include #include #include -#undef bool_constant + #include namespace M2 { diff --git a/M2/Macaulay2/e/aring-zzp-ffpack.hpp b/M2/Macaulay2/e/aring-zzp-ffpack.hpp index 8fa8fc5..6ec343f 100644 --- a/M2/Macaulay2/e/aring-zzp-ffpack.hpp +++ b/M2/Macaulay2/e/aring-zzp-ffpack.hpp @@ -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 -#undef bool_constant #pragma GCC diagnostic pop namespace M2 { -- 2.30.2