Ver a proveniência

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

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

* define WideCharToMultiByte
pull/4284/head
Colleague Riley há 6 meses
committed by GitHub
ascendente
cometimento
bc0bd98763
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: B5690EEEBB952194
2 ficheiros alterados com 4 adições e 6 eliminações
  1. +3
    -1
      src/external/RGFW.h
  2. +1
    -5
      src/platforms/rcore_desktop_rgfw.c

+ 3
- 1
src/external/RGFW.h Ver ficheiro

@ -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>

+ 1
- 5
src/platforms/rcore_desktop_rgfw.c Ver ficheiro

@ -76,9 +76,7 @@ void CloseWindow(void);
#define Size NSSIZE
#endif
#if defined(_MSC_VER)
__declspec(dllimport) int __stdcall MultiByteToWideChar(unsigned int CodePage, unsigned long dwFlags, const char *lpMultiByteStr, int cbMultiByte, wchar_t *lpWideCharStr, int cchWideChar);
#endif
#include "../external/RGFW.h"
@ -538,10 +536,8 @@ void *GetWindowHandle(void)
{
#ifdef RGFW_WEBASM
return (void*)platform.window->src.ctx;
#elif !defined(RGFW_WINDOWS)
return (void *)platform.window->src.window;
#else
return platform.window->src.hwnd;
return (void*)platform.window->src.window;
#endif
}

Carregando…
Cancelar
Guardar