From 98166bbba57990d131f8e398eee5d65caae095b2 Mon Sep 17 00:00:00 2001 From: zhiayang Date: Sun, 9 Dec 2018 00:48:24 +0800 Subject: [PATCH] fix header include problem forgot that precompiled headers (which we use on non-windows) don't use custom include paths that we specify! --- source/include/defs.h | 6 +++++- source/include/precompile.h | 2 -- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/source/include/defs.h b/source/include/defs.h index 10eb826a..4f15104f 100644 --- a/source/include/defs.h +++ b/source/include/defs.h @@ -88,6 +88,11 @@ std::string strprintf(const char* fmt, Ts... ts) #define dcast(t, v) dynamic_cast(v) +#define USE_SKA_HASHMAP false +#if USE_SKA_HASHMAP + #include "ska/flat_hash_map.hpp" +#endif + namespace util { #ifndef STRING_VIEW_TYPE @@ -105,7 +110,6 @@ namespace util #endif - #define USE_SKA_HASHMAP false #if USE_SKA_HASHMAP using hash_map = ska::flat_hash_map; diff --git a/source/include/precompile.h b/source/include/precompile.h index 94c2a4eb..c3d8bd7b 100644 --- a/source/include/precompile.h +++ b/source/include/precompile.h @@ -23,8 +23,6 @@ #include #include -#include "ska/flat_hash_map.hpp" - #endif