mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +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
|
#endif
|
||||||
|
|
||||||
// C23 related macros
|
// 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 \
|
#define WINPR_FALLTHROUGH \
|
||||||
(void)0; \
|
(void)0; \
|
||||||
[[fallthrough]];
|
[[fallthrough]];
|
||||||
|
|||||||
Reference in New Issue
Block a user