From c20b6f5c4116c32f210a55110d7f04b3c20a49ef Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen <4643818-rmlarsen1@users.noreply.gitlab.com> Date: Sun, 1 Mar 2026 11:44:38 -0800 Subject: [PATCH] Restore EIGEN_EMPTY_STRUCT_CTOR as a no-op macro for backward compatibility libeigen/eigen!2231 Co-authored-by: Rasmus Munk Larsen --- Eigen/src/Core/util/Macros.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Eigen/src/Core/util/Macros.h b/Eigen/src/Core/util/Macros.h index 8e5443087..fc1b83eb6 100644 --- a/Eigen/src/Core/util/Macros.h +++ b/Eigen/src/Core/util/Macros.h @@ -1018,6 +1018,10 @@ #define EIGEN_DEPRECATED_WITH_REASON(message) #endif +// Deprecated no-op macro. Was a workaround for GCC 4.3 empty struct issues, removed in Eigen 5.0. +// Defined here for backward compatibility with downstream code that still references it. +#define EIGEN_EMPTY_STRUCT_CTOR(X) + #if EIGEN_COMP_GNUC #define EIGEN_UNUSED __attribute__((unused)) #else