diff options
author | Jérôme Laheurte <jerome@jeromelaheurte.net> | 2017-10-01 19:04:15 +0200 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2017-10-20 01:49:22 +1100 |
commit | b569ae4832a4572929cd298e95e6cca6837a735e (patch) | |
tree | 3a4fb714fea1577fd3ef0228ca148a205b690e42 /tests/examples | |
parent | 07d6b7f56d68a6465f34fa85accc1db0238f4440 (diff) | |
download | gstreamer-plugins-bad-b569ae4832a4572929cd298e95e6cca6837a735e.tar.gz |
Use value instead of version macro when testing for mac OS version
https://bugzilla.gnome.org/show_bug.cgi?id=788404
Diffstat (limited to 'tests/examples')
-rw-r--r-- | tests/examples/avsamplesink/main.m | 2 | ||||
-rwxr-xr-x | tests/examples/gl/cocoa/cocoa-videooverlay.m | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/examples/avsamplesink/main.m b/tests/examples/avsamplesink/main.m index fbffc04b2..fbe852775 100644 --- a/tests/examples/avsamplesink/main.m +++ b/tests/examples/avsamplesink/main.m @@ -25,7 +25,7 @@ #include <CoreFoundation/CoreFoundation.h> #include <CoreMedia/CoreMedia.h> -#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12 +#if MAC_OS_X_VERSION_MAX_ALLOWED < 101200 #define NSWindowStyleMaskBorderless NSBorderlessWindowMask #endif diff --git a/tests/examples/gl/cocoa/cocoa-videooverlay.m b/tests/examples/gl/cocoa/cocoa-videooverlay.m index 75814a71f..3151726bc 100755 --- a/tests/examples/gl/cocoa/cocoa-videooverlay.m +++ b/tests/examples/gl/cocoa/cocoa-videooverlay.m @@ -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 |