From 7fd3cc3980a25bfbc9c0aca935c2afa90230374a Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Fri, 22 Sep 2017 11:20:54 -0700 Subject: Clean up OS version checks for Apple platforms Convert QSysInfo/QOperatingSystemVersion to __builtin_available where required or possible, or to QOperatingSystemVersion where __builtin_available cannot be used and is not needed (such as negated conditions, which are not supported by that construct). Change-Id: I83c0e7e777605b99ff4d24598bfcccf22126fdda Reviewed-by: Thiago Macieira --- config.tests/unix/futimens/futimens.pro | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'config.tests') diff --git a/config.tests/unix/futimens/futimens.pro b/config.tests/unix/futimens/futimens.pro index eb3ccc56c5..83a122252a 100644 --- a/config.tests/unix/futimens/futimens.pro +++ b/config.tests/unix/futimens/futimens.pro @@ -1 +1,6 @@ SOURCES += futimens.cpp + +# Block futimens() on Apple platforms unless it's available on ALL deployment +# targets. This simplifies the logic at the call site dramatically, as it isn't +# strictly needed compared to futimes(). +darwin: QMAKE_CXXFLAGS += -Werror=unguarded-availability -- cgit v1.2.3