From 0c1bceea21fdfd5b8b82ca0441389aaaaf450ad5 Mon Sep 17 00:00:00 2001 From: Miguel Cunha Date: Wed, 14 Aug 2019 23:19:27 +0100 Subject: [PATCH] fix bad include (#45) --- include/internal/constants.hpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/include/internal/constants.hpp b/include/internal/constants.hpp index dda1973b..5c7e1775 100644 --- a/include/internal/constants.hpp +++ b/include/internal/constants.hpp @@ -7,14 +7,18 @@ #include "csv_format.hpp" +#if defined(_WIN32) +#include +#undef max +#undef min +#elif defined(__linux__) +#include +#endif + namespace csv { namespace internals { // Get operating system specific details #if defined(_WIN32) - #include - #undef max - #undef min - inline int getpagesize() { _SYSTEM_INFO sys_info = {}; GetSystemInfo(&sys_info); @@ -24,7 +28,6 @@ namespace csv { /** Size of a memory page in bytes */ const int PAGE_SIZE = getpagesize(); #elif defined(__linux__) - #include const int PAGE_SIZE = getpagesize(); #else const int PAGE_SIZE = 4096;