Skip to content

Instantly share code, notes, and snippets.

@mxdevmanuel
Created July 4, 2018 04:37
Show Gist options
  • Save mxdevmanuel/8642eec6909d93e098ce410d5d00bb74 to your computer and use it in GitHub Desktop.
Save mxdevmanuel/8642eec6909d93e098ce410d5d00bb74 to your computer and use it in GitHub Desktop.
Solve the conflict when using Xlib.h and the Qt framework undefining the conflicting definitions
#ifdef __linux__
#undef Bool
#undef CursorShape
#undef Expose
#undef KeyPress
#undef KeyRelease
#undef FocusIn
#undef FocusOut
#undef FontChange
#undef None
#undef Status
#undef Unsorted
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment