From d36b7bdc3f67d8a950775caa055a8af1654c967d Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 15 Aug 2019 20:03:56 -0400 Subject: [PATCH] Global: Change include into injects a static constructor into every translation unit that includes the header--even if nothing from the header is used. This can result in minor initial program slowdown, as all of these constructors need to run before main() can execute. Instead, we can use , which includes all of the necessary machinery that we need. --- include/athena/Global.hpp | 2 +- src/athena/Global.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/athena/Global.hpp b/include/athena/Global.hpp index f15df4b..ddf7e72 100644 --- a/include/athena/Global.hpp +++ b/include/athena/Global.hpp @@ -1,6 +1,6 @@ #pragma once -#include +#include #include "athena/Types.hpp" #define FMT_STRING_ALIAS 1 diff --git a/src/athena/Global.cpp b/src/athena/Global.cpp index ca82e30..ff8c97c 100644 --- a/src/athena/Global.cpp +++ b/src/athena/Global.cpp @@ -2,6 +2,7 @@ #include "athena/Utility.hpp" #include #include +#include #define FMT_STRING_ALIAS 1 #define FMT_ENFORCE_COMPILE_STRING 1