diff --git a/CMakeLists.txt b/CMakeLists.txt index 03d2b5da9..d10ea35ac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -511,14 +511,6 @@ mark_as_advanced(SEAL_BUILD_STATIC_SEAL_C) # Create SEAL_C library but add no source files yet if(SEAL_BUILD_SEAL_C) - # Check that size_t is 8 bytes - include(CheckTypeSize) - check_type_size("size_t" SIZET LANGUAGE C) - if(NOT ${SIZET} EQUAL 8) - unset(SIZET CACHE) - unset(HAVE_SIZET CACHE) - message(FATAL_ERROR "SEAL_C requires 64-bit platform") - endif() unset(SIZET CACHE) unset(HAVE_SIZET CACHE) diff --git a/native/src/seal/c/defines.h b/native/src/seal/c/defines.h index a090bd76c..1e1c7c420 100644 --- a/native/src/seal/c/defines.h +++ b/native/src/seal/c/defines.h @@ -3,15 +3,9 @@ #pragma once -// STD -#include - // SEALNet #include "seal/c/stdafx.h" -// Check that std::size_t is 64 bits -static_assert(sizeof(std::size_t) == 8, "Require sizeof(std::size_t) == 8"); - #ifdef _MSC_VER // Check that architecture (platform) is x64