Skip to content

Commit

Permalink
(rcore_desktop_rgfw.c) fix errors when compiling with mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
ColleagueRiley committed Aug 24, 2024
1 parent b0c3013 commit 5dec091
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/platforms/rcore_desktop_rgfw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit 5dec091

Please sign in to comment.