fix(Config.h): Corrected handling of supported C++ standards (#4973)

This commit is contained in:
Matej Kenda
2025-06-24 14:21:25 +02:00
parent 8391f9e561
commit e2c2899d4e
2 changed files with 5 additions and 3 deletions

View File

@@ -189,10 +189,12 @@
#define POCO_HAVE_CPP20_COMPILER (__cplusplus >= 202002L)
#define POCO_HAVE_CPP23_COMPILER (__cplusplus >= 202302L)
#if defined(POCO_HAVE_CPP20_COMPILER)
#if (POCO_HAVE_CPP20_COMPILER)
#include <version>
#if defined(__cpp_lib_jthread)
#define POCO_HAVE_JTHREAD 1
#define POCO_HAVE_JTHREAD true
#else
#define POCO_HAVE_JTHREAD false
#endif
#endif