[CMAKE] Add some -D__ROS_LONG64__ to please gcc x64
authorHervé Poussineau <hpoussin@reactos.org>
Thu, 26 Mar 2020 13:40:39 +0000 (14:40 +0100)
committerHervé Poussineau <hpoussin@reactos.org>
Thu, 26 Mar 2020 15:39:16 +0000 (16:39 +0100)
We can now pass a UINT* to a function wanting a DWORD*

22 files changed:
dll/directx/wine/d3d8/CMakeLists.txt
dll/directx/wine/d3dcompiler_43/CMakeLists.txt
dll/directx/wine/d3dx9_36/d3dx9.cmake
dll/directx/wine/ddraw/CMakeLists.txt
dll/directx/wine/wined3d/CMakeLists.txt
dll/win32/comctl32/CMakeLists.txt
dll/win32/crypt32/CMakeLists.txt
dll/win32/gdiplus/CMakeLists.txt
dll/win32/inetmib1/CMakeLists.txt
dll/win32/itss/CMakeLists.txt
dll/win32/jscript/CMakeLists.txt
dll/win32/mshtml/CMakeLists.txt
dll/win32/msi/CMakeLists.txt
dll/win32/msxml3/CMakeLists.txt
dll/win32/ole32/CMakeLists.txt
dll/win32/oleaut32/CMakeLists.txt
dll/win32/riched20/CMakeLists.txt
dll/win32/scrrun/CMakeLists.txt
dll/win32/uxtheme/CMakeLists.txt
dll/win32/vbscript/CMakeLists.txt
dll/win32/wbemprox/CMakeLists.txt
dll/win32/windowscodecs/CMakeLists.txt

index d3d49e2..98a24bb 100644 (file)
@@ -1,6 +1,7 @@
 
 add_definitions(
     -D__WINESRC__
+    -D__ROS_LONG64__
     -DUSE_WIN32_OPENGL)
 
 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
index a036c7e..c651fb5 100644 (file)
@@ -1,6 +1,7 @@
 
 add_definitions(
     -D__WINESRC__
+    -D__ROS_LONG64__
     -DDIRECT3D_VERSION=0x0900)
 
 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
index 900a8bf..80fb5d8 100644 (file)
@@ -32,6 +32,7 @@ function(add_d3dx9_target __version)
         ${CMAKE_CURRENT_BINARY_DIR}/${module}_stubs.c
         ${CMAKE_CURRENT_BINARY_DIR}/${module}.def)
     
+    add_definitions(-D__ROS_LONG64__)
     set_module_type(${module} win32dll)
     add_dependencies(${module} d3d_idl_headers)
     target_link_libraries(${module} dxguid wine)
index 03029bd..cd501d5 100644 (file)
@@ -1,6 +1,7 @@
 
 add_definitions(
     -D__WINESRC__
+    -D__ROS_LONG64__
     -DUSE_WIN32_OPENGL)
 
 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
index 29b337e..e00033e 100644 (file)
@@ -3,6 +3,7 @@ add_definitions(
     -D__WINESRC__
     -D_USE_MATH_DEFINES
     -DUSE_WIN32_OPENGL
+    -D__ROS_LONG64__
     -Dcopysignf=_copysignf)
 
 include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
index f6f22da..b47f764 100644 (file)
@@ -2,6 +2,7 @@
 add_definitions(
     -D__WINESRC__
     -D_WINE
+    -D__ROS_LONG64__
     -D_COMCTL32_)
 
 remove_definitions(-D_WIN32_WINNT=0x502 -DWINVER=0x502)
index b00ef45..5c2a93c 100644 (file)
@@ -4,6 +4,7 @@ add_definitions(-D_WIN32_WINNT=0x600 -DWINVER=0x600)
 
 add_definitions(
     -D__WINESRC__
+    -D__ROS_LONG64__
     -D_WINE
     -D_CRYPT32_)
 
index 1720891..11fe7ee 100644 (file)
@@ -1,6 +1,7 @@
 
 add_definitions(
     -D__WINESRC__
+    -D__ROS_LONG64__
     -D_USE_MATH_DEFINES)
 
 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
index 08c1b0a..85bbeea 100644 (file)
@@ -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(inetmib1.dll inetmib1.spec)
 
index 63cefe6..92a01fe 100644 (file)
@@ -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(itss.dll itss.spec)
 
index 826800b..b6f5c42 100644 (file)
@@ -1,6 +1,7 @@
 
 add_definitions(
     -D__WINESRC__
+    -D__ROS_LONG64__
     -D_USE_MATH_DEFINES)
 
 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
index 08e23da..05ad532 100644 (file)
@@ -4,6 +4,7 @@ add_definitions(-D_WIN32_WINNT=0x600)
 
 add_definitions(
     -D__WINESRC__
+    -D__ROS_LONG64__
     -DCOM_NO_WINDOWS_H)
 
 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
index e4f586d..10306ca 100644 (file)
@@ -3,7 +3,7 @@ remove_definitions(-D_WIN32_WINNT=0x502)
 add_definitions(-D_WIN32_WINNT=0x600)
 
 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
-add_definitions(-D__WINESRC__ -DMSIRUNMODE=MSIRUNMODE_T)
+add_definitions(-D__WINESRC__ -D__ROS_LONG64__ -DMSIRUNMODE=MSIRUNMODE_T)
 spec2def(msi.dll msi.spec ADD_IMPORTLIB)
 generate_idl_iids(msiserver.idl)
 
index e61ac57..3cb5997 100644 (file)
@@ -1,6 +1,7 @@
 
 add_definitions(
     -D__WINESRC__
+    -D__ROS_LONG64__
     -D_WINE
     -DLIBXML_STATIC
     -DCOM_NO_WINDOWS_H)
index c0b2f20..6ef97f4 100644 (file)
@@ -5,6 +5,7 @@ add_definitions(-D_WIN32_WINNT=0x600)
 add_definitions(
     -D__WINESRC__
     -D_OLE32_
+    -D__ROS_LONG64__
     -DCOM_NO_WINDOWS_H
     -DENTRY_PREFIX=OLE32_
     -DPROXY_CLSID=CLSID_PSFactoryBuffer
index 30a18b9..6a15230 100644 (file)
@@ -4,6 +4,7 @@ add_definitions(-D_WIN32_WINNT=0x600)
 
 add_definitions(
     -D__WINESRC__
+    -D__ROS_LONG64__
     -DCOM_NO_WINDOWS_H
     -D_OLEAUT32_
     -DPROXY_DELEGATION
index 11e1859..b61a49d 100644 (file)
@@ -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(riched20.dll riched20.spec ADD_IMPORTLIB)
 
index 791cb93..7dbc453 100644 (file)
@@ -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(scrrun.dll scrrun.spec)
 add_idl_headers(scrrun_idlheader scrrun.idl)
 add_typelib(scrrun.idl)
index 80d31bf..37fefc5 100644 (file)
@@ -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(uxtheme.dll uxtheme.spec ADD_IMPORTLIB)
 
 list(APPEND SOURCE
index b95e66a..63b9719 100644 (file)
@@ -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(vbscript.dll vbscript.spec)
 
index 3f48d3e..5d477df 100644 (file)
@@ -2,7 +2,7 @@
 remove_definitions(-D_WIN32_WINNT=0x502)
 add_definitions(-D_WIN32_WINNT=0x600)
 
-add_definitions(-D__WINESRC__)
+add_definitions(-D__WINESRC__ -D__ROS_LONG64__)
 include_directories(BEFORE ${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
 spec2def(wbemprox.dll wbemprox.spec)
 
index 611334a..e17a657 100644 (file)
@@ -1,6 +1,7 @@
 
 add_definitions(
     -D__WINESRC__
+    -D__ROS_LONG64__
     -DENTRY_PREFIX=WIC_
     -DPROXY_DELEGATION
     -DWINE_REGISTER_DLL)