Fix compilers for clipboard

Cross compile c and msvc c++ support
This commit is contained in:
Saksham Goyal 2025-10-09 12:40:52 -04:00 committed by GitHub
parent 87097abf54
commit c91daba3b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -92,11 +92,13 @@ unsigned char* Win32GetClipboardImageData(int* width, int* height, unsigned long
typedef int WINBOOL;
// typedef HANDLE HGLOBAL;
#if !defined(HWND) && !defined(_MSC_VER)
#define HWND void*
#else
typedef struct HWND__ *HWND;
#endif
#if !defined(_WINUSER_) || !defined(WINUSER_ALREADY_INCLUDED)