1
- From 14c4b52da4e81dfbbac60471054bb26721f2934b Mon Sep 17 00:00:00 2001
1
+ From be228c5a1590694c53d4ec70d7006f2d1a036772 Mon Sep 17 00:00:00 2001
2
2
From: Sergey Fedorov <
[email protected] >
3
3
Date: Mon, 17 Feb 2025 11:01:28 +0800
4
- Subject: [PATCH 12 /13] utils_base.mm: fix
4
+ Subject: [PATCH 13 /13] utils_base.mm: fix
5
5
6
6
---
7
7
src/osx/cocoa/utils_base.mm | 63 ++++++++++++++++++++++++++++++++++---
8
8
1 file changed, 58 insertions(+), 5 deletions(-)
9
9
10
10
diff --git a/src/osx/cocoa/utils_base.mm b/src/osx/cocoa/utils_base.mm
11
- index c7c253363d..56dfee8ff4 100644
11
+ index c7c253363d..71ea57b9df 100644
12
12
--- a/src/osx/cocoa/utils_base.mm
13
13
+++ b/src/osx/cocoa/utils_base.mm
14
14
@@ -24,6 +24,13 @@
15
15
#include "wx/osx/private.h"
16
16
#include "wx/osx/private/available.h"
17
17
18
- + #if (defined(__APPLE__) && __MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_10 ) \
18
+ + #if (defined(__APPLE__) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 101000 ) \
19
19
+ || (defined(__WXOSX_IPHONE__) && defined(__IPHONE_8_0))
20
20
+ #define wxHAS_NSPROCESSINFO 1
21
21
+ #endif
@@ -29,7 +29,7 @@ index c7c253363d..56dfee8ff4 100644
29
29
// our OS version is the same in non GUI and GUI cases
30
30
wxOperatingSystemId wxGetOsVersion(int *verMaj, int *verMin, int *verMicro)
31
31
{
32
- + #ifdef wxHAS_NSPROCESSINFO
32
+ + #if wxHAS_NSPROCESSINFO
33
33
NSOperatingSystemVersion osVer = [NSProcessInfo processInfo].operatingSystemVersion;
34
34
35
35
if ( verMaj != NULL )
@@ -58,7 +58,7 @@ index c7c253363d..56dfee8ff4 100644
58
58
59
59
bool wxCheckOsVersion(int majorVsn, int minorVsn, int microVsn)
60
60
{
61
- + #ifdef wxHAS_NSPROCESSINFO
61
+ + #if wxHAS_NSPROCESSINFO
62
62
NSOperatingSystemVersion osVer;
63
63
osVer.majorVersion = majorVsn;
64
64
osVer.minorVersion = minorVsn;
0 commit comments