From 7b337a98f48c0c8b3c066c64879988721b43f3d7 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Wed, 6 May 2020 05:30:29 -0700 Subject: [PATCH] StdCall fix for Win32 --- BeefLibs/corlib/src/Console.bf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BeefLibs/corlib/src/Console.bf b/BeefLibs/corlib/src/Console.bf index ac5ece20..f081a298 100644 --- a/BeefLibs/corlib/src/Console.bf +++ b/BeefLibs/corlib/src/Console.bf @@ -41,13 +41,13 @@ namespace System public uint16[2] mMaximumWindowSize; } - [CLink] + [CLink, StdCall] static extern int SetConsoleTextAttribute(void* hConsoleOutput, uint16 wAttributes); - [CLink] + [CLink, StdCall] static extern int GetConsoleScreenBufferInfo(void* hConsoleOutput, out CONSOLE_SCREEN_BUFFER_INFO lpConsoleScreenBufferInfo); - [CLink] + [CLink, StdCall] static extern void* GetStdHandle(uint32 nStdHandle); #if BF_PLATFORM_WINDOWS