File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 49
49
# include <mach-o/loader.h>
50
50
// The os_log unified logging APIs were introduced in macOS 10.12, iOS 10.0,
51
51
// tvOS 10.0, and watchOS 3.0;
52
- # if TARGET_OS_IPHONE || (TARGET_OS_OSX && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_12 )
52
+ # if TARGET_OS_IPHONE || (TARGET_OS_OSX && defined( MAC_OS_X_VERSION_10_12 ) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_12 )
53
53
# include <os/log.h>
54
54
# endif
55
55
#endif
@@ -2964,7 +2964,7 @@ apple_log_write_impl(PyObject *self, PyObject *args)
2964
2964
// Call the underlying Apple logging API. The os_log unified logging APIs
2965
2965
// were introduced in macOS 10.12, iOS 10.0, tvOS 10.0, and watchOS 3.0;
2966
2966
// this call is a no-op on older versions.
2967
- #if TARGET_OS_IPHONE || (TARGET_OS_OSX && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_12 )
2967
+ #if TARGET_OS_IPHONE || (TARGET_OS_OSX && defined( MAC_OS_X_VERSION_10_12 ) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_12 )
2968
2968
// Pass the user-provided text through explicit %s formatting
2969
2969
// to avoid % literals being interpreted as a formatting directive.
2970
2970
os_log_with_type (OS_LOG_DEFAULT , logtype , "%s" , text );
You can’t perform that action at this time.
0 commit comments