aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/nsterm.h33
2 files changed, 22 insertions, 15 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 34ec9e971fe..dd6a2cc6283 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12013-08-13 Jan Djärv <jan.h.d@swipnet.se>
2
3 * nsterm.h: Fix CGFloat for OSX 10.4 (Bug#15086).
4
12013-08-13 Dmitry Antipov <dmantipov@yandex.ru> 52013-08-13 Dmitry Antipov <dmantipov@yandex.ru>
2 6
3 * window.h (WINDOW_FRINGE_EXTENDED_P): New macro. 7 * window.h (WINDOW_FRINGE_EXTENDED_P): New macro.
diff --git a/src/nsterm.h b/src/nsterm.h
index 7843f369d24..c34067991f6 100644
--- a/src/nsterm.h
+++ b/src/nsterm.h
@@ -53,9 +53,24 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
53 53
54/* CGFloat on GNUStep may be 4 or 8 byte, but functions expect float* for some 54/* CGFloat on GNUStep may be 4 or 8 byte, but functions expect float* for some
55 versions. 55 versions.
56 On Cocoa, functions expect CGFloat*. Make compatible type. */ 56 On Cocoa >= 10.5, functions expect CGFloat*. Make compatible type. */
57#if defined (NS_IMPL_COCOA) || GNUSTEP_GUI_MAJOR_VERSION > 0 || \ 57#ifdef NS_IMPL_COCOA
58 GNUSTEP_GUI_MINOR_VERSION >= 22 58
59#ifndef NS_HAVE_NSINTEGER
60#if defined (__LP64__) && __LP64__
61typedef double CGFloat;
62typedef long NSInteger;
63typedef unsigned long NSUInteger;
64#else
65typedef float CGFloat;
66typedef int NSInteger;
67typedef unsigned int NSUInteger;
68#endif /* not LP64 */
69#endif /* not NS_HAVE_NSINTEGER */
70
71typedef CGFloat EmacsCGFloat;
72
73#elif GNUSTEP_GUI_MAJOR_VERSION > 0 || GNUSTEP_GUI_MINOR_VERSION >= 22
59typedef CGFloat EmacsCGFloat; 74typedef CGFloat EmacsCGFloat;
60#else 75#else
61typedef float EmacsCGFloat; 76typedef float EmacsCGFloat;
@@ -424,18 +439,6 @@ extern EmacsMenu *mainMenu, *svcsMenu, *dockMenu;
424@end 439@end
425#endif 440#endif
426 441
427#ifndef NS_HAVE_NSINTEGER
428#if defined (__LP64__) && __LP64__
429typedef double CGFloat;
430typedef long NSInteger;
431typedef unsigned long NSUInteger;
432#else
433typedef float CGFloat;
434typedef int NSInteger;
435typedef unsigned int NSUInteger;
436#endif /* not LP64 */
437#endif /* not NS_HAVE_NSINTEGER */
438
439#endif /* __OBJC__ */ 442#endif /* __OBJC__ */
440 443
441 444