diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/nsterm.h | 33 |
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 @@ | |||
| 1 | 2013-08-13 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * nsterm.h: Fix CGFloat for OSX 10.4 (Bug#15086). | ||
| 4 | |||
| 1 | 2013-08-13 Dmitry Antipov <dmantipov@yandex.ru> | 5 | 2013-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__ | ||
| 61 | typedef double CGFloat; | ||
| 62 | typedef long NSInteger; | ||
| 63 | typedef unsigned long NSUInteger; | ||
| 64 | #else | ||
| 65 | typedef float CGFloat; | ||
| 66 | typedef int NSInteger; | ||
| 67 | typedef unsigned int NSUInteger; | ||
| 68 | #endif /* not LP64 */ | ||
| 69 | #endif /* not NS_HAVE_NSINTEGER */ | ||
| 70 | |||
| 71 | typedef CGFloat EmacsCGFloat; | ||
| 72 | |||
| 73 | #elif GNUSTEP_GUI_MAJOR_VERSION > 0 || GNUSTEP_GUI_MINOR_VERSION >= 22 | ||
| 59 | typedef CGFloat EmacsCGFloat; | 74 | typedef CGFloat EmacsCGFloat; |
| 60 | #else | 75 | #else |
| 61 | typedef float EmacsCGFloat; | 76 | typedef 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__ | ||
| 429 | typedef double CGFloat; | ||
| 430 | typedef long NSInteger; | ||
| 431 | typedef unsigned long NSUInteger; | ||
| 432 | #else | ||
| 433 | typedef float CGFloat; | ||
| 434 | typedef int NSInteger; | ||
| 435 | typedef unsigned int NSUInteger; | ||
| 436 | #endif /* not LP64 */ | ||
| 437 | #endif /* not NS_HAVE_NSINTEGER */ | ||
| 438 | |||
| 439 | #endif /* __OBJC__ */ | 442 | #endif /* __OBJC__ */ |
| 440 | 443 | ||
| 441 | 444 | ||