mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-27 21:22:26 +00:00
XQuartz: Check NSINTEGER_DEFINED to make sure the NSInteger and NSUInteger types are defined.
(cherry picked from commit 36e02a8649c0a545084cce5fb2c5717277b9273c)
This commit is contained in:
parent
07c935b72f
commit
af76bddd7a
2 changed files with 10 additions and 8 deletions
|
|
@ -45,6 +45,16 @@
|
|||
#undef BOOL
|
||||
#endif
|
||||
|
||||
#ifndef NSINTEGER_DEFINED
|
||||
#if __LP64__ || NS_BUILD_32_LIKE_64
|
||||
typedef long NSInteger;
|
||||
typedef unsigned long NSUInteger;
|
||||
#else
|
||||
typedef int NSInteger;
|
||||
typedef unsigned int NSUInteger;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@interface X11Controller : NSObject
|
||||
{
|
||||
IBOutlet NSPanel *prefs_panel;
|
||||
|
|
|
|||
Loading…
Reference in a new issue