Skip to content

Instantly share code, notes, and snippets.

@andyvand
Created May 23, 2025 09:35
Show Gist options
  • Select an option

  • Save andyvand/2a0132ffd4587a5a75bee5c736e0f05f to your computer and use it in GitHub Desktop.

Select an option

Save andyvand/2a0132ffd4587a5a75bee5c736e0f05f to your computer and use it in GitHub Desktop.
wxWidgets Windows XP patch
diff -Nur wxWidgets-3.2.8/CMakeLists.txt wxWidgets-3.2.8-XP/CMakeLists.txt
--- wxWidgets-3.2.8/CMakeLists.txt 2025-04-24 21:21:09
+++ wxWidgets-3.2.8-XP/CMakeLists.txt 2025-05-23 11:25:02
@@ -28,15 +28,6 @@
# This block, particularly the versions used, should be kept in sync with
# samples/minimal/CMakeLists.txt.
-if(APPLE AND NOT CMAKE_OSX_DEPLOYMENT_TARGET)
- # If no deployment target has been set default to the minimum supported
- # OS version (this has to be set before the first project() call)
- if(CMAKE_SYSTEM_NAME STREQUAL "iOS")
- set(CMAKE_OSX_DEPLOYMENT_TARGET 12.0 CACHE STRING "iOS Deployment Target")
- else()
- set(CMAKE_OSX_DEPLOYMENT_TARGET 10.10 CACHE STRING "macOS Deployment Target")
- endif()
-endif()
include(build/cmake/policies.cmake NO_POLICY_SCOPE)
@@ -89,9 +80,6 @@
set(wxCOPYRIGHT "2002-2025 wxWidgets")
set(wxLANGUAGES C CXX)
-if(APPLE AND NOT CMAKE_VERSION VERSION_LESS "3.16")
- list(APPEND wxLANGUAGES OBJCXX)
-endif()
project(wxWidgets VERSION ${wxVERSION} LANGUAGES ${wxLANGUAGES})
diff -Nur wxWidgets-3.2.8/include/wx/msw/private/filedialog.h wxWidgets-3.2.8-XP/include/wx/msw/private/filedialog.h
--- wxWidgets-3.2.8/include/wx/msw/private/filedialog.h 2025-04-24 21:21:09
+++ wxWidgets-3.2.8-XP/include/wx/msw/private/filedialog.h 2025-05-23 11:32:35
@@ -21,12 +21,7 @@
// It also needs a compiler providing declarations and definitions
// of interfaces available in Windows Vista.
// And it needs OLE support to actually use these interfaces.
-#if (wxUSE_DIRDLG || wxUSE_FILEDLG) && wxUSE_DYNLIB_CLASS && wxUSE_OLE && \
- defined(__IFileOpenDialog_INTERFACE_DEFINED__)
- #define wxUSE_IFILEOPENDIALOG 1
-#else
- #define wxUSE_IFILEOPENDIALOG 0
-#endif
+#define wxUSE_IFILEOPENDIALOG 0
#if wxUSE_IFILEOPENDIALOG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment