[XDK] Some GCC/wine compatibility fixes

This commit is contained in:
Timo Kreuzer 2025-05-10 11:05:36 +03:00
parent 8369c55edb
commit 06034b258a
2 changed files with 6 additions and 2 deletions

View file

@ -173,7 +173,11 @@
#endif
#endif /* DECLSPEC_EXPORT */
#ifdef __GNUC__
#define DECLSPEC_NORETURN __attribute__((noreturn))
#else
#define DECLSPEC_NORETURN __declspec(noreturn)
#endif
#ifndef DECLSPEC_ADDRSAFE
#if defined(_MSC_VER) && (defined(_M_ALPHA) || defined(_M_AXP64))

View file

@ -79,9 +79,9 @@
/*#ifdef _WINE*/
#if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 3)))
# define __WINE_ALLOC_SIZE(x) __attribute__((__alloc_size__(x)))
# define __WINE_ALLOC_SIZE(...) __attribute__((__alloc_size__(__VA_ARGS__)))
#else
# define __WINE_ALLOC_SIZE(x)
# define __WINE_ALLOC_SIZE(...)
#endif
/*#endif*/