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