From 211b8c2e903a49096572b66e0c57a2de5ba40255 Mon Sep 17 00:00:00 2001 From: Drew Rife Date: Tue, 30 Jul 2024 14:36:46 -0400 Subject: [PATCH] fix: determine legacy variant after determining compiler version (#938) --- include/etl/platform.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/etl/platform.h b/include/etl/platform.h index 303e8ccb6..e66a0e08d 100644 --- a/include/etl/platform.h +++ b/include/etl/platform.h @@ -138,6 +138,15 @@ SOFTWARE. #define ETL_NOT_USING_64BIT_TYPES 0 #endif +//************************************* +// Figure out things about the compiler, if haven't already done so in etl_profile.h +#include "profiles/determine_compiler_version.h" +#include "profiles/determine_compiler_language_support.h" + +//************************************* +// See if we can determine the OS we're compiling on, if haven't already done so in etl_profile.h +#include "profiles/determine_development_os.h" + //************************************* // Helper macro for choosing the variant type. #if !ETL_USING_CPP11 || defined(ETL_USE_LEGACY_VARIANT) @@ -148,15 +157,6 @@ SOFTWARE. #define ETL_NOT_USING_LEGACY_VARIANT 1 #endif -//************************************* -// Figure out things about the compiler, if haven't already done so in etl_profile.h -#include "profiles/determine_compiler_version.h" -#include "profiles/determine_compiler_language_support.h" - -//************************************* -// See if we can determine the OS we're compiling on, if haven't already done so in etl_profile.h -#include "profiles/determine_development_os.h" - //************************************* // Check WCHAR_MIN and WCHAR_MAX #if !defined(WCHAR_MIN)