mirror of
https://github.com/reactos/reactos.git
synced 2025-06-27 14:39:43 +00:00
[XDK] Some GCC/wine compatibility fixes
This commit is contained in:
parent
8369c55edb
commit
06034b258a
2 changed files with 6 additions and 2 deletions
|
@ -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))
|
||||
|
|
|
@ -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*/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue