diff '--color=auto' -ur eigen-5.0.0.orig/test/main.h eigen-5.0.0/test/main.h
--- eigen-5.0.0.orig/test/main.h	2025-09-28 09:24:17.000000000 +0200
+++ eigen-5.0.0/test/main.h	2025-11-21 01:02:29.702350858 +0100
@@ -86,32 +86,6 @@
 #define EIGEN_DEFAULT_DENSE_INDEX_TYPE int
 #endif
 
-// To test that all calls from Eigen code to std::min() and std::max() are
-// 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.
-#if !defined(__HIPCC__) && !defined(EIGEN_USE_SYCL) && !defined(EIGEN_POCKETFFT_DEFAULT)
-//
-// HIP header files include the following files
-//  <thread>
-//  <regex>
-//  <unordered_map>
-// which seem to contain not-parenthesized calls to "max"/"min", triggering the following check and causing the compile
-// to fail
-//
-// Including those header files before the following macro definition for "min" / "max", only partially resolves the
-// issue This is because other HIP header files also define "isnan" / "isinf" / "isfinite" functions, which are needed
-// in other headers.
-//
-// So instead choosing to simply disable this check for HIP
-//
-#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
-#endif
-
 // test possible conflicts
 struct real {};
 struct imag {};
@@ -121,15 +95,6 @@
 #endif
 #define M_PI please_use_EIGEN_PI_instead_of_M_PI
 
-#define FORBIDDEN_IDENTIFIER \
-  (this_identifier_is_forbidden_to_avoid_clashes) this_identifier_is_forbidden_to_avoid_clashes
-// B0 is defined in POSIX header termios.h
-#define B0 FORBIDDEN_IDENTIFIER
-#define I FORBIDDEN_IDENTIFIER
-
-// _res is defined by resolv.h
-#define _res FORBIDDEN_IDENTIFIER
-
 // Unit tests calling Eigen's blas library must preserve the default blocking size
 // to avoid troubles.
 #ifndef EIGEN_NO_DEBUG_SMALL_PRODUCT_BLOCKS
