From 5cca5bf08fe504bd75898f744d5fe80cc0e9ad29 Mon Sep 17 00:00:00 2001 From: Adrian Robert Date: Fri, 16 Oct 2009 03:09:06 +0000 Subject: [PATCH] (NS_HAVE_NSINTEGER): Back out and augment with CGFloat, still needed under Tiger. --- src/nsterm.h | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/nsterm.h b/src/nsterm.h index d247f900950..29d312a4840 100644 --- a/src/nsterm.h +++ b/src/nsterm.h @@ -54,7 +54,7 @@ along with GNU Emacs. If not, see . */ @class EmacsToolbar; -@interface EmacsView : NSView +@interface EmacsView : NSView /* 10.6+: NSWindowDelegate */ { char *old_title; BOOL windowClosing; @@ -104,7 +104,7 @@ along with GNU Emacs. If not, see . */ ========================================================================== */ -@interface EmacsMenu : NSMenu +@interface EmacsMenu : NSMenu /* 10.6+: */ { struct frame *frame; unsigned long keyEquivModMask; @@ -131,7 +131,7 @@ along with GNU Emacs. If not, see . */ @class EmacsImage; -@interface EmacsToolbar : NSToolbar +@interface EmacsToolbar : NSToolbar /* 10.6+: */ { EmacsView *emacsView; NSMutableDictionary *identifierToItem; @@ -174,7 +174,7 @@ along with GNU Emacs. If not, see . */ - (Lisp_Object)runDialogAt: (NSPoint)p; @end -@interface EmacsTooltip : NSObject +@interface EmacsTooltip : NSObject /* 10.6+: */ { NSWindow *win; NSTextField *textField; @@ -328,6 +328,18 @@ extern EmacsMenu *mainMenu, *svcsMenu, *dockMenu; @end #endif +#ifndef NS_HAVE_NSINTEGER +#if defined(__LP64__) && __LP64__ +typedef double CGFloat; +typedef long NSInteger; +typedef unsigned long NSUInteger; +#else +typedef float CGFloat; +typedef int NSInteger; +typedef unsigned int NSUInteger; +#endif /* not LP64 */ +#endif /* not NS_HAVE_NSINTEGER */ + #endif /* __OBJC__ */ -- 2.39.5