From d9232a96aa03444879d855ab86e43d8fb4369c9d Mon Sep 17 00:00:00 2001 From: Jitse Niesen Date: Wed, 4 May 2011 14:28:01 +0100 Subject: [PATCH] Bail out if preprocessor symbol Success is defined (bug #253). --- Eigen/src/Core/util/Constants.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Eigen/src/Core/util/Constants.h b/Eigen/src/Core/util/Constants.h index 37f18f2b4..c3dd3a09d 100644 --- a/Eigen/src/Core/util/Constants.h +++ b/Eigen/src/Core/util/Constants.h @@ -371,6 +371,10 @@ enum QRPreconditioners { FullPivHouseholderQRPreconditioner }; +#ifdef Success +#error The preprocessor symbol 'Success' is defined, possibly by the X11 header file X.h +#endif + /** \ingroups enums * Enum for reporting the status of a computation. */ enum ComputationInfo {