mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-05 19:19:39 -06:00
Remove X11 preprocessor defines for mouse buttons
This commit is contained in:
@@ -65,6 +65,16 @@ enum class MouseAction {
|
||||
Repeat = 2
|
||||
};
|
||||
|
||||
// The X11 library header files define Button1-Button5 as defines, so they have to be
|
||||
// removed before we can use them as unqualified identifiers for the enum ---abock
|
||||
#ifdef unix
|
||||
#undef Button1
|
||||
#undef Button2
|
||||
#undef Button3
|
||||
#undef Button4
|
||||
#undef Button5
|
||||
#endif // unix
|
||||
|
||||
enum class MouseButton {
|
||||
Button1 = 0,
|
||||
Button2 = 1,
|
||||
|
||||
Reference in New Issue
Block a user