From 58fc35227e4c4d937449cdc9309a40079d7fb1dc Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Sat, 7 May 2022 23:31:40 +0200 Subject: [PATCH] Fix outdated calling convention in SAASound (maybe fix MinGW) https://docs.microsoft.com/en-us/cpp/cpp/stdcall?view=msvc-170 > For compatibility with previous versions, _stdcall is a synonym for __stdcall > unless compiler option /Za (Disable language extensions) is specified. --- extern/SAASound/src/SAASound.h | 2 +- extern/SAASound/src/types.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extern/SAASound/src/SAASound.h b/extern/SAASound/src/SAASound.h index 7496cc36..d55e80a7 100644 --- a/extern/SAASound/src/SAASound.h +++ b/extern/SAASound/src/SAASound.h @@ -53,7 +53,7 @@ typedef unsigned long SAAPARAM; #endif #ifdef _WIN32 -#define SAAAPI _stdcall +#define SAAAPI __stdcall #else #define SAAAPI #endif diff --git a/extern/SAASound/src/types.h b/extern/SAASound/src/types.h index 8cce2124..2ed26ff7 100755 --- a/extern/SAASound/src/types.h +++ b/extern/SAASound/src/types.h @@ -30,7 +30,7 @@ typedef struct } ENVDATA; #ifdef WIN32 -extern "C" void _stdcall OutputDebugStringA (char*); +extern "C" void __stdcall OutputDebugStringA (char*); #endif #endif