changeset 97209:9ca52564cbea

add defines for NSInteger, NSUInteger on non-Leopard
author Adrian Robert <Adrian.B.Robert@gmail.com>
date Fri, 01 Aug 2008 16:29:50 +0000
parents 8fb5367ed2f1
children 50d4090b5c35
files src/ChangeLog src/nsterm.h
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Fri Aug 01 16:23:25 2008 +0000
+++ b/src/ChangeLog	Fri Aug 01 16:29:50 2008 +0000
@@ -1,3 +1,7 @@
+2008-08-01  Adrian Robert  <Adrian.B.Robert@gmail.com>
+
+	* nsterm.h (NSInteger, NSUInteger): Add defines for non-Leopard.
+
 2008-08-01  Chong Yidong  <cyd@stupidchicken.com>
 
 	* nsfns.m (ns_frame_parm_handlers): Add empty entry for
--- a/src/nsterm.h	Fri Aug 01 16:23:25 2008 +0000
+++ b/src/nsterm.h	Fri Aug 01 16:29:50 2008 +0000
@@ -364,6 +364,11 @@
 @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__ */