summaryrefslogtreecommitdiff
path: root/Source/kwsys/Status.hxx.in
diff options
context:
space:
mode:
Diffstat (limited to 'Source/kwsys/Status.hxx.in')
-rw-r--r--Source/kwsys/Status.hxx.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/kwsys/Status.hxx.in b/Source/kwsys/Status.hxx.in
index 16efaefdf3..7cef029bbb 100644
--- a/Source/kwsys/Status.hxx.in
+++ b/Source/kwsys/Status.hxx.in
@@ -7,6 +7,16 @@
#include <string>
+/*
+ * Detect a symbol collision with the name of this class. X11 headers use
+ * `#define Status int` instead of using `typedef` which poisons any other
+ * usage of this name.
+ */
+#if defined(Status) && defined(_X11_XLIB_H_)
+# error \
+ "Status.hxx must be included *before* any X11 headers to avoid a collision with the `Status` define that is made in its API."
+#endif
+
namespace @KWSYS_NAMESPACE@ {
/** \class Status