Skip to content
Snippets Groups Projects
Commit 4fa6de56 authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'status-detect-x11'


4226d5e5 Status: detect and diagnose X11 symbol conflicts

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !263
parents 18e1631b 4226d5e5
No related branches found
No related tags found
1 merge request!263Status: detect and diagnose X11 symbol conflicts
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment