https://git.reactos.org/?p=reactos.git;a=commitdiff;h=53d808d2eb448a60ea012…
commit 53d808d2eb448a60ea0126c1b962c9e62fc1709d
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Mon Dec 23 21:30:09 2024 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Thu Jan 16 18:13:27 2025 +0100
[WINE] Add explicit missing __ROS_LONG64__ for Wine modules (#7576)
i.e. fix build.
When these get synced with more recent Wine version, you can remove
this define once you get past a "Enable compilation with long types"
Wine commit or similar.
---
dll/directx/wine/d3drm/CMakeLists.txt | 2 +-
dll/directx/wine/d3dxof/CMakeLists.txt | 2 +-
dll/win32/comdlg32/CMakeLists.txt | 3 ++-
dll/win32/cryptui/CMakeLists.txt | 3 ++-
dll/win32/ieframe/CMakeLists.txt | 2 +-
dll/win32/inetcomm/CMakeLists.txt | 2 +-
dll/win32/wininet/CMakeLists.txt | 3 ++-
7 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/dll/directx/wine/d3drm/CMakeLists.txt
b/dll/directx/wine/d3drm/CMakeLists.txt
index b0234641ac2..3812e460134 100644
--- a/dll/directx/wine/d3drm/CMakeLists.txt
+++ b/dll/directx/wine/d3drm/CMakeLists.txt
@@ -1,5 +1,5 @@
-add_definitions(-D__WINESRC__)
+add_definitions(-D__WINESRC__ -D__ROS_LONG64__)
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
spec2def(d3drm.dll d3drm.spec ADD_IMPORTLIB)
diff --git a/dll/directx/wine/d3dxof/CMakeLists.txt
b/dll/directx/wine/d3dxof/CMakeLists.txt
index 98fdae11965..1da900a2fd8 100644
--- a/dll/directx/wine/d3dxof/CMakeLists.txt
+++ b/dll/directx/wine/d3dxof/CMakeLists.txt
@@ -1,5 +1,5 @@
-add_definitions(-D__WINESRC__)
+add_definitions(-D__WINESRC__ -D__ROS_LONG64__)
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
spec2def(d3dxof.dll d3dxof.spec ADD_IMPORTLIB)
diff --git a/dll/win32/comdlg32/CMakeLists.txt b/dll/win32/comdlg32/CMakeLists.txt
index 2516c4e2d22..f558991dd93 100644
--- a/dll/win32/comdlg32/CMakeLists.txt
+++ b/dll/win32/comdlg32/CMakeLists.txt
@@ -1,7 +1,8 @@
add_definitions(
-D__WINESRC__
- -D_WINE)
+ -D_WINE
+ -D__ROS_LONG64__)
include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
spec2def(comdlg32.dll comdlg32.spec ADD_IMPORTLIB)
diff --git a/dll/win32/cryptui/CMakeLists.txt b/dll/win32/cryptui/CMakeLists.txt
index 92ab7aaed0d..a80c65e84a2 100644
--- a/dll/win32/cryptui/CMakeLists.txt
+++ b/dll/win32/cryptui/CMakeLists.txt
@@ -1,7 +1,8 @@
add_definitions(
-D__WINESRC__
- -D_WINE)
+ -D_WINE
+ -D__ROS_LONG64__)
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
spec2def(cryptui.dll cryptui.spec ADD_IMPORTLIB)
diff --git a/dll/win32/ieframe/CMakeLists.txt b/dll/win32/ieframe/CMakeLists.txt
index 830a3f5b9c3..6e4e2d4522e 100644
--- a/dll/win32/ieframe/CMakeLists.txt
+++ b/dll/win32/ieframe/CMakeLists.txt
@@ -1,6 +1,6 @@
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
-add_definitions(-D__WINESRC__)
+add_definitions(-D__WINESRC__ -D__ROS_LONG64__)
spec2def(ieframe.dll ieframe.spec ADD_IMPORTLIB)
list(APPEND SOURCE
diff --git a/dll/win32/inetcomm/CMakeLists.txt b/dll/win32/inetcomm/CMakeLists.txt
index 90ff8513cdc..b366d4da22a 100644
--- a/dll/win32/inetcomm/CMakeLists.txt
+++ b/dll/win32/inetcomm/CMakeLists.txt
@@ -1,5 +1,5 @@
-add_definitions(-D__WINESRC__)
+add_definitions(-D__WINESRC__ -D__ROS_LONG64__)
include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
spec2def(inetcomm.dll inetcomm.spec ADD_IMPORTLIB)
diff --git a/dll/win32/wininet/CMakeLists.txt b/dll/win32/wininet/CMakeLists.txt
index 73449f9f8b4..d9e717646d5 100644
--- a/dll/win32/wininet/CMakeLists.txt
+++ b/dll/win32/wininet/CMakeLists.txt
@@ -8,7 +8,8 @@ add_definitions(
add_definitions(
-D__WINESRC__
- -D_WINE)
+ -D_WINE
+ -D__ROS_LONG64__)
spec2def(wininet.dll wininet.spec ADD_IMPORTLIB)