[gtk+] quartz: Don't use the instancetype keyword



commit 64c5b97be84dd05fb200201274ac9fd8ba2f424c
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Oct 25 13:26:01 2015 -0400

    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

 gdk/quartz/gdkcursor-quartz.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/quartz/gdkcursor-quartz.c b/gdk/quartz/gdkcursor-quartz.c
index f371e23..3f587db 100644
--- a/gdk/quartz/gdkcursor-quartz.c
+++ b/gdk/quartz/gdkcursor-quartz.c
@@ -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]; \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]