quartz: Don't use the instancetype keyword

gdkcursor-quartz.c uses the instancetype keyword, which doesn't seem to
be supported in the version of Objective C that Snow Leopard uses.
Replacing that keyword with the thing it represents makes it build.

Patch by Ryan Hendrickson,
http://bugzilla.gnome.org/show_bug.cgi?id=756770
This commit is contained in:
Matthias Clasen 2015-10-25 13:26:01 -04:00
parent f55e3f7eda
commit 64c5b97be8

View File

@ -300,7 +300,7 @@ _gdk_quartz_display_get_cursor_for_surface (GdkDisplay *display,
}
#define CUSTOM_CURSOR_CTOR(name, id) \
+ (instancetype)name \
+ (gdkCoreCursor *)name \
{ \
gdkCoreCursor *obj; \
obj = [self new]; \