From 04f33e1137a7e254293ed624502e5f0b7c13df42 Mon Sep 17 00:00:00 2001 From: Adrian Robert Date: Fri, 1 Aug 2008 16:29:50 +0000 Subject: [PATCH] add defines for NSInteger, NSUInteger on non-Leopard --- src/ChangeLog | 4 ++++ src/nsterm.h | 5 +++++ 2 files changed, 9 insertions(+) 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__ */ -- 2.39.2