ports/math/eigen3/patches/patch-test_main_h

16 lines
740 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
This test fails, and we actually DO provide min() and max() correctly,
so disable it.
--- test/main.h.orig
+++ test/main.h
@@ -67,8 +67,8 @@
// protected by parenthesis against macro expansion, the min()/max() macros
// are defined here and any not-parenthesized min/max call will cause a
// compiler error.
-#define min(A,B) please_protect_your_min_with_parentheses
-#define max(A,B) please_protect_your_max_with_parentheses
+//#define min(A,B) please_protect_your_min_with_parentheses
+//#define max(A,B) please_protect_your_max_with_parentheses
#define isnan(X) please_protect_your_isnan_with_parentheses
#define isinf(X) please_protect_your_isinf_with_parentheses
#define isfinite(X) please_protect_your_isfinite_with_parentheses