(rcore_desktop_rgfw.c) fix errors when compiling with mingw (#4282)

* (rcore_desktop_rgfw.c) fix errors when compiling with mingw

* define WideCharToMultiByte
This commit is contained in:
Colleague Riley 2024-08-24 12:43:46 -04:00 • committed by GitHub
commit bc0bd98763
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 6 deletions

4
src/external/RGFW.h vendored
View file

@ -4999,7 +4999,9 @@ static const struct wl_callback_listener wl_surface_frame_listener = {
#define WIN32_LEAN_AND_MEAN
#define OEMRESOURCE
#include <windows.h>
__declspec(dllimport) int __stdcall WideCharToMultiByte( UINT CodePage, DWORD dwFlags, const WCHAR* lpWideCharStr, int cchWideChar, LPSTR lpMultiByteStr, int cbMultiByte, LPCCH lpDefaultChar, LPBOOL lpUsedDefaultChar);
#include <processthreadsapi.h>
#include <wchar.h>
#include <locale.h>