Use value instead of version macro when testing for mac OS version
authorJérôme Laheurte <jerome@jeromelaheurte.net>
Sun, 1 Oct 2017 17:04:15 +0000 (19:04 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:30 +0000 (19:32 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=788404

gst-libs/gst/gl/cocoa/gstgldisplay_cocoa.m
gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m
tests/examples/gl/cocoa/cocoa-videooverlay.m

index d76b766..5b9205b 100644 (file)
@@ -34,7 +34,7 @@ G_DEFINE_TYPE (GstGLDisplayCocoa, gst_gl_display_cocoa, GST_TYPE_GL_DISPLAY);
 static void gst_gl_display_cocoa_finalize (GObject * object);
 static guintptr gst_gl_display_cocoa_get_handle (GstGLDisplay * display);
 
-#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12
+#if MAC_OS_X_VERSION_MAX_ALLOWED < 101200
 #define NSEventMaskAny                       NSAnyEventMask
 #endif
 
index b13f1de..4b2eb60 100644 (file)
@@ -28,7 +28,7 @@
 
 #include "gstgl_cocoa_private.h"
 
-#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12
+#if MAC_OS_X_VERSION_MAX_ALLOWED < 101200
 #define NSWindowStyleMaskTitled              NSTitledWindowMask
 #define NSWindowStyleMaskClosable            NSClosableWindowMask
 #define NSWindowStyleMaskResizable           NSResizableWindowMask
index 75814a7..3151726 100755 (executable)
@@ -22,7 +22,7 @@
 #include <gst/gst.h>
 #include <gst/video/videooverlay.h>
 
-#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12
+#if MAC_OS_X_VERSION_MAX_ALLOWED < 101200
 #define NSEventMaskAny                       NSAnyEventMask
 #define NSWindowStyleMaskTitled              NSTitledWindowMask
 #define NSWindowStyleMaskClosable            NSClosableWindowMask