mirror of
https://github.com/pocoproject/poco.git
synced 2025-12-11 02:25:59 +01:00
fix(Config.h): Corrected handling of supported C++ standards (#4973)
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
#include "Poco/NotificationQueue.h"
|
||||
|
||||
#if (POCO_HAVE_CPP20_COMPILER)
|
||||
#if !defined(POCO_HAVE_JTHREAD)
|
||||
#if !(POCO_HAVE_JTHREAD)
|
||||
#pragma message ("NOTE: std::jthread is expected but is not available. Please check your compiler version and settings.")
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user