guard.hpp 808 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #ifndef NALL_XORG_GUARD_HPP
  2. #define NALL_XORG_GUARD_HPP
  3. #define Atom XlibAtom
  4. #define Display XlibDisplay
  5. #define Font XlibFont
  6. #define Screen XlibScreen
  7. #define Window XlibWindow
  8. #else
  9. #undef NALL_XORG_GUARD_HPP
  10. #undef Atom
  11. #undef Display
  12. #undef Font
  13. #undef Screen
  14. #undef Window
  15. #undef Above
  16. #undef Below
  17. #undef Bool
  18. #ifndef NALL_XORG_GUARD_CONSTANTS
  19. #define NALL_XORG_GUARD_CONSTANTS
  20. enum XlibConstants : int {
  21. XlibButton1 = Button1,
  22. XlibButton2 = Button2,
  23. XlibButton3 = Button3,
  24. XlibButton4 = Button4,
  25. XlibButton5 = Button5,
  26. XlibCurrentTime = CurrentTime,
  27. XlibFalse = False,
  28. XlibNone = None,
  29. XlibTrue = True,
  30. };
  31. #endif
  32. #undef Button1
  33. #undef Button2
  34. #undef Button3
  35. #undef Button4
  36. #undef Button5
  37. #undef CurrentTime
  38. #undef False
  39. #undef None
  40. #undef True
  41. #undef MAX
  42. #undef MIN
  43. #endif