[ifdef] properly check for defined
This commit is contained in:
parent
ad44573164
commit
13b44b8b77
@ -52,7 +52,7 @@
|
||||
#endif
|
||||
#endif
|
||||
#else
|
||||
#if __GNUC__ >= 4
|
||||
#if defined(__GNUC__) && (__GNUC__ >= 4)
|
||||
#define FREERDP_API __attribute__((visibility("default")))
|
||||
#else
|
||||
#define FREERDP_API
|
||||
@ -65,7 +65,7 @@
|
||||
#if defined _WIN32 || defined __CYGWIN__
|
||||
#define FREERDP_LOCAL
|
||||
#else
|
||||
#if __GNUC__ >= 4
|
||||
#if defined(__GNUC__) && (__GNUC__ >= 4)
|
||||
#define FREERDP_LOCAL __attribute__((visibility("hidden")))
|
||||
#else
|
||||
#define FREERDP_LOCAL
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include <wayland-client.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#if __GNUC__ >= 4
|
||||
#if defined(__GNUC__) && (__GNUC__ >= 4)
|
||||
#define UWAC_API __attribute__((visibility("default")))
|
||||
#else
|
||||
#define UWAC_API
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#if __clang__
|
||||
#if defined(__clang__)
|
||||
#define WINPR_PRAGMA_DIAG_PUSH _Pragma("clang diagnostic push")
|
||||
#define WINPR_PRAGMA_DIAG_IGNORED_PEDANTIC _Pragma("clang diagnostic ignored \"-Wpedantic\"")
|
||||
#define WINPR_PRAGMA_DIAG_IGNORED_MISSING_PROTOTYPES \
|
||||
@ -38,7 +38,7 @@
|
||||
#define WINPR_PRAGMA_DIAG_IGNORED_FORMAT_SECURITY \
|
||||
_Pragma("clang diagnostic ignored \"-Wformat-security\"")
|
||||
#define WINPR_PRAGMA_DIAG_POP _Pragma("clang diagnostic pop")
|
||||
#elif __GNUC__
|
||||
#elif defined(__GNUC__)
|
||||
#define WINPR_PRAGMA_DIAG_PUSH _Pragma("GCC diagnostic push")
|
||||
#define WINPR_PRAGMA_DIAG_IGNORED_PEDANTIC _Pragma("GCC diagnostic ignored \"-Wpedantic\"")
|
||||
#define WINPR_PRAGMA_DIAG_IGNORED_MISSING_PROTOTYPES \
|
||||
|
@ -37,7 +37,7 @@
|
||||
#endif
|
||||
#endif
|
||||
#else
|
||||
#if __GNUC__ >= 4
|
||||
#if defined(__GNUC__) && (__GNUC__ >= 4)
|
||||
#define WINPR_API __attribute__((visibility("default")))
|
||||
#else
|
||||
#define WINPR_API
|
||||
@ -79,7 +79,7 @@
|
||||
#if defined _WIN32 || defined __CYGWIN__
|
||||
#define WINPR_LOCAL
|
||||
#else
|
||||
#if __GNUC__ >= 4
|
||||
#if defined(__GNUC__) && (__GNUC__ >= 4)
|
||||
#define WINPR_LOCAL __attribute__((visibility("hidden")))
|
||||
#else
|
||||
#define WINPR_LOCAL
|
||||
|
@ -45,7 +45,7 @@ extern "C"
|
||||
const map_info_t* map_info_list;
|
||||
} memory_t;
|
||||
|
||||
#if __i386__
|
||||
#ifdef __i386__
|
||||
/* ptrace() register context. */
|
||||
typedef struct pt_regs_x86
|
||||
{
|
||||
@ -69,7 +69,7 @@ extern "C"
|
||||
} pt_regs_x86_t;
|
||||
#endif
|
||||
|
||||
#if __mips__
|
||||
#ifdef __mips__
|
||||
/* ptrace() GET_REGS context. */
|
||||
typedef struct pt_regs_mips
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user