From 012419166e32a83798db3424462c1b36db4c7807 Mon Sep 17 00:00:00 2001 From: Jitse Niesen Date: Wed, 4 May 2011 14:28:45 +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 2c7a444b7..de7809375 100644 --- a/Eigen/src/Core/util/Constants.h +++ b/Eigen/src/Core/util/Constants.h @@ -367,6 +367,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 {