libs/vkd3d: Make vkd3d debug compatible with MinGW headers.

This commit is contained in:
Józef Kucia
2016-09-28 09:42:49 +02:00
parent 821d978950
commit ef80cdedc3
4 changed files with 27 additions and 15 deletions

View File

@@ -139,7 +139,6 @@ typedef struct SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES;
# ifdef __GNUC__
# define DECLSPEC_SELECTANY __attribute__((weak))
# define DECLSPEC_HIDDEN __attribute__((visibility("hidden")))
# endif
/* Macros for COM interfaces */
@@ -190,6 +189,17 @@ typedef struct SECURITY_ATTRIBUTES SECURITY_ATTRIBUTES;
# endif /* NONAMELESSUNION */
#endif /* __C89_NAMELESS */
/* Define DECLSPEC_HIDDEN */
#ifndef DECLSPEC_HIDDEN
# if defined(__MINGW32__)
# define DECLSPEC_HIDDEN
# elif defined(__GNUC__)
# define DECLSPEC_HIDDEN __attribute__((visibility("hidden")))
# else
# define DECLSPEC_HIDDEN
# endif
#endif /* DECLSPEC_HIDDEN */
/* Define min() & max() macros */
#ifndef min
# define min(a, b) (((a) <= (b)) ? (a) : (b))