From: Adrian Robert Date: Fri, 1 Aug 2008 16:29:50 +0000 (+0000) Subject: add defines for NSInteger, NSUInteger on non-Leopard X-Git-Tag: emacs-pretest-23.0.90~3709 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=04f33e1137a7e254293ed624502e5f0b7c13df42;p=emacs.git add defines for NSInteger, NSUInteger on non-Leopard --- diff --git a/src/ChangeLog b/src/ChangeLog index e66db7b812e..a0707ab86b0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-08-01 Adrian Robert + + * nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard. + 2008-08-01 Chong Yidong * nsfns.m (ns_frame_parm_handlers): Add empty entry for diff --git a/src/nsterm.h b/src/nsterm.h index a9dc32793f4..c6da68e6c07 100644 --- a/src/nsterm.h +++ b/src/nsterm.h @@ -364,6 +364,11 @@ extern EmacsMenu *mainMenu, *svcsMenu; @end #endif +#if defined (NS_IMPL_GNUSTEP) || ( defined (NS_IMPL_COCOA) && MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4) +typedef long NSInteger; +typedef unsigned long NSUInteger; +#endif /* NS_IMPL_GNUSTEP || (NS_IMPL_COCOA and <= 10.4) */ + #endif /* __OBJC__ */