aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/Core/util
diff options
context:
space:
mode:
authorGravatar Jitse Niesen <jitse@maths.leeds.ac.uk>2011-05-04 14:28:45 +0100
committerGravatar Jitse Niesen <jitse@maths.leeds.ac.uk>2011-05-04 14:28:45 +0100
commit012419166e32a83798db3424462c1b36db4c7807 (patch)
tree9a71c52064a9d66a9e1c1f74dc06443aca8d66f7 /Eigen/src/Core/util
parent781e75cbd74a5a2e4f5bd816589e9847013e36ec (diff)
Bail out if preprocessor symbol Success is defined (bug #253).
Diffstat (limited to 'Eigen/src/Core/util')
-rw-r--r--Eigen/src/Core/util/Constants.h4
1 files changed, 4 insertions, 0 deletions
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 {