From a490eb969d7c7ed8b9cad1a27012cee868328e2f Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Thu, 29 Oct 2026 10:57:21 +0000 Subject: [PATCH] C++03 compatibility initialisation --- include/etl/timer.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/etl/timer.h b/include/etl/timer.h index da950ba2..7d4d57ad 100644 --- a/include/etl/timer.h +++ b/include/etl/timer.h @@ -126,8 +126,16 @@ namespace etl { typedef void* type; +#if ETL_USING_CPP11 static ETL_CONSTANT type No_Owner = ETL_NULLPTR; +#else + static ETL_CONSTANT type No_Owner; +#endif }; + +#if ETL_NOT_USING_CPP11 + owner::type const owner::No_Owner = ETL_NULLPTR; +#endif } // namespace timer } // namespace etl