diff options
author | Kristian Rietveld <kris@gtk.org> | 2009-12-27 17:01:25 +0100 |
---|---|---|
committer | Kristian Rietveld <kris@gtk.org> | 2009-12-27 19:28:56 +0100 |
commit | b2b70e5a8d275c8412709c9f077fb136078cd416 (patch) | |
tree | 962cb342a347adf3216909f20cfd82f362e7af5d /gdk/quartz/GdkQuartzView.c | |
parent | 9d1e7b2146a0343210eb734ba2aa2b72f0a2ff24 (diff) | |
download | gtk+-b2b70e5a8d275c8412709c9f077fb136078cd416.tar.gz |
Start using NSInteger and NSUInteger
These have been introduced in Leopard and default to int and unsigned int.
In 64-bit Snow Leopard they are long and unsigned long. This caused issues
with the getRectsBeingDrawn message which needs a pointer to a NSInteger
(long on 64-bit!) but we passed in an integer. Surprisingly this problem
was visible when compiling with -O0 (segfault), but *not* when compiling
with -O1. Other messages were NSInteger is now needed have also been
adapted.
Since NSInteger and NSUInteger are not available on Tiger, a define
has been added to add typedefs for these when they have not been defined
by the system headers.
Diffstat (limited to 'gdk/quartz/GdkQuartzView.c')
-rw-r--r-- | gdk/quartz/GdkQuartzView.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdk/quartz/GdkQuartzView.c b/gdk/quartz/GdkQuartzView.c index 5d643eb984..4ae010c3f8 100644 --- a/gdk/quartz/GdkQuartzView.c +++ b/gdk/quartz/GdkQuartzView.c @@ -60,7 +60,8 @@ GdkWindowObject *private = GDK_WINDOW_OBJECT (gdk_window); GdkWindowImplQuartz *impl = GDK_WINDOW_IMPL_QUARTZ (private->impl); const NSRect *drawn_rects; - int count, i; + NSInteger count; + int i; GdkRegion *region; if (GDK_WINDOW_DESTROYED (gdk_window)) |