Fix Windows build

This commit is contained in:
tevador
2019-06-28 19:41:58 +02:00
parent 552a33467b
commit 1b0a3700c5
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -56,11 +56,11 @@ if(NOT ARCH_ID)
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "")
set(CMAKE_SYSTEM_PROCESSOR ${CMAKE_HOST_SYSTEM_PROCESSOR})
endif()
set(ARCH_ID "${CMAKE_SYSTEM_PROCESSOR}")
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" ARCH_ID)
endif()
if(NOT ARM_ID)
string(TOLOWER "${ARCH_ID}" ARM_ID)
set(ARM_ID "${ARCH_ID}")
endif()
if(NOT ARCH)
+2
View File
@@ -587,6 +587,8 @@ void rx_set_rounding_mode(uint32_t mode);
#ifndef HAVE_AES
static const char* platformError = "Platform doesn't support hardware AES";
#include <stdexcept>
FORCE_INLINE rx_vec_i128 rx_aesenc_vec_i128(rx_vec_i128 v, rx_vec_i128 rkey) {
throw std::runtime_error(platformError);
}