mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
[winpr,platform] add C++ guards for macros
define attributes when included from C++ code
This commit is contained in:
@@ -59,7 +59,11 @@
|
||||
#endif
|
||||
|
||||
// C23 related macros
|
||||
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201904L)
|
||||
#if defined(__cplusplus) && (__cplusplus >= 201703L)
|
||||
#define WINPR_FALLTHROUGH \
|
||||
(void)0; \
|
||||
[[fallthrough]];
|
||||
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201904L)
|
||||
#define WINPR_FALLTHROUGH \
|
||||
(void)0; \
|
||||
[[fallthrough]];
|
||||
|
||||
Reference in New Issue
Block a user