From bbe949ccd81904fee435942aa100bd97eb3cd034 Mon Sep 17 00:00:00 2001 From: falkTX Date: Sat, 21 Sep 2024 22:37:57 +0200 Subject: [PATCH] Fix build against old wine Signed-off-by: falkTX --- source/includes/vestige/vestige.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/source/includes/vestige/vestige.h b/source/includes/vestige/vestige.h index 72f1c9c4f..150596002 100644 --- a/source/includes/vestige/vestige.h +++ b/source/includes/vestige/vestige.h @@ -30,11 +30,16 @@ * Boston, MA 02110-1301 USA. * */ -#include + #ifndef _VESTIGE_H #define _VESTIGE_H -#if ! (defined(WIN32) || defined(_WIN32) || defined(__WIN32__)) +#include + +#if defined(__WINE__) +# undef __cdecl +# define __cdecl __attribute__((ms_abi)) +#elif ! (defined(WIN32) || defined(_WIN32) || defined(__WIN32__)) # define __cdecl #endif