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