sanitizedCarbon.h 920 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Don't #include any of the AppKit, etc stuff directly since it will
  3. * pollute the X11 namespace.
  4. */
  5. #ifndef _XQ_SANITIZED_CARBON_H_
  6. #define _XQ_SANITIZED_CARBON_H_
  7. // QuickDraw in ApplicationServices has the following conflicts with
  8. // the basic X server headers. Use QD_<name> to use the QuickDraw
  9. // definition of any of these symbols, or the normal name for the
  10. // X11 definition.
  11. #define Cursor QD_Cursor
  12. #define WindowPtr QD_WindowPtr
  13. #define Picture QD_Picture
  14. #define BOOL OSX_BOOL
  15. #define EventType HIT_EventType
  16. #include <ApplicationServices/ApplicationServices.h>
  17. #include <CoreServices/CoreServices.h>
  18. #include <Carbon/Carbon.h>
  19. #include <IOKit/hidsystem/event_status_driver.h>
  20. #include <IOKit/hidsystem/ev_keymap.h>
  21. #include <architecture/byte_order.h> // For the NXSwap*
  22. #undef Cursor
  23. #undef WindowPtr
  24. #undef Picture
  25. #undef BOOL
  26. #undef EventType
  27. #endif /* _XQ_SANITIZED_CARBON_H_ */