|
|
@ -13,7 +13,7 @@ unsigned char* Win32GetClipboardImageData(int* width, int* height, unsigned long |
|
|
|
#include <stdlib.h> |
|
|
|
#include <assert.h> |
|
|
|
|
|
|
|
// NOTE: These search for architecture is taken from "Windows.h", and it's necessary if we really don't wanna import windows.h |
|
|
|
// NOTE: These search for architecture is taken from "Windows.h", and it's necessary if we really don't wanna import windows.h |
|
|
|
// and still make it compile on msvc, because import indirectly importing "winnt.h" (e.g. <minwindef.h>) can cause problems is these are not defined. |
|
|
|
#if !defined(_X86_) && !defined(_68K_) && !defined(_MPPC_) && !defined(_IA64_) && !defined(_AMD64_) && !defined(_ARM_) && !defined(_ARM64_) && !defined(_ARM64EC_) && defined(_M_IX86) |
|
|
|
#define _X86_ |
|
|
@ -92,13 +92,6 @@ 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) |
|
|
@ -371,4 +364,3 @@ static int GetPixelDataOffset(BITMAPINFOHEADER bih) |
|
|
|
} |
|
|
|
#endif // WIN32_CLIPBOARD_IMPLEMENTATION |
|
|
|
// EOF |
|
|
|
|