mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[attributes] update attribute definitions
* support C++ * support C23 * replace __inline et al with C11 inline
This commit is contained in:
@@ -53,7 +53,13 @@
|
||||
#endif
|
||||
#else
|
||||
#if defined(__GNUC__) && (__GNUC__ >= 4)
|
||||
#if defined(__cplusplus) && (__cplusplus >= 201703L)
|
||||
#define FREERDP_API [[gnu::visibility("default")]]
|
||||
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 202311L)
|
||||
#define FREERDP_API [[gnu::visibility("default")]]
|
||||
#else
|
||||
#define FREERDP_API __attribute__((visibility("default")))
|
||||
#endif
|
||||
#else
|
||||
#define FREERDP_API
|
||||
#endif
|
||||
@@ -66,7 +72,13 @@
|
||||
#define FREERDP_LOCAL
|
||||
#else
|
||||
#if defined(__GNUC__) && (__GNUC__ >= 4)
|
||||
#if defined(__cplusplus) && (__cplusplus >= 201703L)
|
||||
#define FREERDP_LOCAL [[gnu::visibility("hidden")]]
|
||||
#elif defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 202311L)
|
||||
#define FREERDP_LOCAL [[gnu::visibility("hidden")]]
|
||||
#else
|
||||
#define FREERDP_LOCAL __attribute__((visibility("hidden")))
|
||||
#endif
|
||||
#else
|
||||
#define FREERDP_LOCAL
|
||||
#endif
|
||||
@@ -104,14 +116,6 @@
|
||||
((_cb != NULL) ? _cb(__VA_ARGS__) : (_default_return))
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#define ALIGN64 __attribute__((aligned(8)))
|
||||
#else
|
||||
#ifdef _WIN32
|
||||
#define ALIGN64 __declspec(align(8))
|
||||
#else
|
||||
#define ALIGN64
|
||||
#endif
|
||||
#endif
|
||||
#define ALIGN64 DECLSPEC_ALIGN(8)
|
||||
|
||||
#endif /* FREERDP_API */
|
||||
|
||||
Reference in New Issue
Block a user