Skip to content

Commit a8b5dac

Browse files
committed
tmp2
1 parent 65749ba commit a8b5dac

File tree

3 files changed

+35
-7
lines changed

3 files changed

+35
-7
lines changed

graphics/wxgtk-3.2/Portfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ platform darwin {
149149
0009-stdpaths.patch \
150150
0010-uilocale.patch \
151151
0011-cfstring-fix.patch \
152-
0012-utils_base.mm-fix.patch
152+
0012-xlocale.patch \
153+
0013-utils_base.mm-fix.patch
153154

154155
# FIXME: find a way to fix wxLocale, since third-party apps may require it.
155156
if {${os.major} < 16} {
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
From fe89060d6bfc443659cf405335154ca4d05a7d35 Mon Sep 17 00:00:00 2001
2+
From: Sergey Fedorov <[email protected]>
3+
Date: Tue, 18 Mar 2025 01:18:45 +0800
4+
Subject: [PATCH 12/13] xlocale
5+
6+
---
7+
src/unix/uilocale.cpp | 4 ++++
8+
1 file changed, 4 insertions(+)
9+
10+
diff --git a/src/unix/uilocale.cpp b/src/unix/uilocale.cpp
11+
index 4aaebee4a5..b3d64ed2bc 100644
12+
--- a/src/unix/uilocale.cpp
13+
+++ b/src/unix/uilocale.cpp
14+
@@ -21,6 +21,10 @@
15+
#if wxUSE_INTL
16+
17+
#include <locale.h>
18+
+#ifdef __APPLE__
19+
+ #include <xlocale.h>
20+
+#endif
21+
+
22+
#ifdef HAVE_LANGINFO_H
23+
#include <langinfo.h>
24+
#endif
25+
--
26+
2.49.0
27+

graphics/wxgtk-3.2/files/0012-utils_base.mm-fix.patch renamed to graphics/wxgtk-3.2/files/0013-utils_base.mm-fix.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
From 14c4b52da4e81dfbbac60471054bb26721f2934b Mon Sep 17 00:00:00 2001
1+
From be228c5a1590694c53d4ec70d7006f2d1a036772 Mon Sep 17 00:00:00 2001
22
From: Sergey Fedorov <[email protected]>
33
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
55

66
---
77
src/osx/cocoa/utils_base.mm | 63 ++++++++++++++++++++++++++++++++++---
88
1 file changed, 58 insertions(+), 5 deletions(-)
99

1010
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
1212
--- a/src/osx/cocoa/utils_base.mm
1313
+++ b/src/osx/cocoa/utils_base.mm
1414
@@ -24,6 +24,13 @@
1515
#include "wx/osx/private.h"
1616
#include "wx/osx/private/available.h"
1717

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) \
1919
+ || (defined(__WXOSX_IPHONE__) && defined(__IPHONE_8_0))
2020
+ #define wxHAS_NSPROCESSINFO 1
2121
+#endif
@@ -29,7 +29,7 @@ index c7c253363d..56dfee8ff4 100644
2929
// our OS version is the same in non GUI and GUI cases
3030
wxOperatingSystemId wxGetOsVersion(int *verMaj, int *verMin, int *verMicro)
3131
{
32-
+#ifdef wxHAS_NSPROCESSINFO
32+
+#if wxHAS_NSPROCESSINFO
3333
NSOperatingSystemVersion osVer = [NSProcessInfo processInfo].operatingSystemVersion;
3434

3535
if ( verMaj != NULL )
@@ -58,7 +58,7 @@ index c7c253363d..56dfee8ff4 100644
5858

5959
bool wxCheckOsVersion(int majorVsn, int minorVsn, int microVsn)
6060
{
61-
+#ifdef wxHAS_NSPROCESSINFO
61+
+#if wxHAS_NSPROCESSINFO
6262
NSOperatingSystemVersion osVer;
6363
osVer.majorVersion = majorVsn;
6464
osVer.minorVersion = minorVsn;

0 commit comments

Comments
 (0)