From b6cc28e5ef51aec335710216db76acab6a4e4b9e Mon Sep 17 00:00:00 2001 From: Aster Seker Date: Tue, 23 Dec 2025 12:55:41 +0300 Subject: [PATCH] fix(ntp): align cpp17 guard macro Replace the private cpp17 guard with the public macro so the NTP service singleton storage follows the same standard check. --- include/time_shield/ntp_time_service.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/time_shield/ntp_time_service.hpp b/include/time_shield/ntp_time_service.hpp index e4b679e..5784345 100644 --- a/include/time_shield/ntp_time_service.hpp +++ b/include/time_shield/ntp_time_service.hpp @@ -179,7 +179,7 @@ namespace time_shield { }; #endif // _TIME_SHIELD_TEST_FAKE_NTP -#ifndef _TIME_SHIELD_CPP17 +#ifndef TIME_SHIELD_CPP17 #if defined(TIME_SHIELD_TEST_FAKE_NTP) using RunnerAlias = detail::FakeNtpRunner; #else @@ -542,7 +542,7 @@ namespace time_shield { inline NtpTimeServiceT NtpTimeServiceT::m_instance{}; #endif -#ifndef _TIME_SHIELD_CPP17 +#ifndef TIME_SHIELD_CPP17 namespace detail { #if defined(TIME_SHIELD_NTP_TIME_SERVICE_DEFINE) NtpTimeServiceT g_ntp_time_service;