From 968ae9484852fc04b3d75ca0c3c1b1fb4ef70f63 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Mon, 21 Aug 2023 21:32:50 +0200 Subject: [PATCH] did i tell you how much i hate windows before? --- CMakeLists.txt | 1 + solanaceae/ngc_ft1_sha1/sha1_ngcft1.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 38013b5..9afa7ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,6 +54,7 @@ add_library(solanaceae_sha1_ngcft1 ) target_include_directories(solanaceae_sha1_ngcft1 PUBLIC .) target_compile_features(solanaceae_sha1_ngcft1 PUBLIC cxx_std_17) +target_compile_definitions(solanaceae_sha1_ngcft1 PRIVATE WIN32_LEAN_AND_MEAN NOMINMAX) target_link_libraries(solanaceae_sha1_ngcft1 PUBLIC solanaceae_ngcft1 sha1::sha1 diff --git a/solanaceae/ngc_ft1_sha1/sha1_ngcft1.cpp b/solanaceae/ngc_ft1_sha1/sha1_ngcft1.cpp index 8854c95..5e4624a 100644 --- a/solanaceae/ngc_ft1_sha1/sha1_ngcft1.cpp +++ b/solanaceae/ngc_ft1_sha1/sha1_ngcft1.cpp @@ -8,7 +8,6 @@ #include #include -#include "./file_rw_mapped.hpp" #include "./ft1_sha1_info.hpp" #include "./hash_utils.hpp" @@ -17,6 +16,8 @@ #include +#include "./file_rw_mapped.hpp" + #include #include #include