From f7cb225857c2a90353158a08dc94619ddd59ca48 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Tue, 23 Aug 2022 18:04:40 +0100 Subject: [PATCH] Fixed conditional compilation --- include/etl/private/variant_legacy.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/etl/private/variant_legacy.h b/include/etl/private/variant_legacy.h index ab8171e0..319d5d8f 100644 --- a/include/etl/private/variant_legacy.h +++ b/include/etl/private/variant_legacy.h @@ -55,7 +55,7 @@ SOFTWARE. //***************************************************************************** namespace etl { -#if !defined(ETL_USE_LEGACY_VARIANT) +#if ETL_USING_CPP11 && !defined(ETL_USE_LEGACY_VARIANT) namespace legacy { #endif @@ -978,7 +978,7 @@ namespace etl #undef ETL_GEN_LEGACY_VISIT -#if !defined(ETL_USE_LEGACY_VARIANT) +#if ETL_USING_CPP11 && !defined(ETL_USE_LEGACY_VARIANT) } #endif }