https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e7acf6176434f7d08138a…
commit e7acf6176434f7d08138a4bba4478a80e8c6dc57
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Fri Feb 1 18:08:26 2019 +0100
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Fri Feb 1 18:09:30 2019 +0100
[CMAKE] Define some AMD64 symbols for host tools that match what we do for x86.
Fixes widl build.
---
CMakeLists.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ae26227eeb..756b08f218 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -84,6 +84,8 @@ if(NOT CMAKE_CROSSCOMPILING)
if(MSVC)
if(ARCH STREQUAL "i386")
add_definitions(/D_X86_ /D__i386__ /DWIN32 /D_WINDOWS)
+ elseif(ARCH STREQUAL "amd64")
+ add_definitions(-D_AMD64_ -D__x86_64__ /DWIN32 -D_WINDOWS)
endif()
if(MSVC_VERSION GREATER 1699)
add_definitions(/D_ALLOW_KEYWORD_MACROS)