From 8e564886c8ebc2b7a1ef021fd382c03c5908da57 Mon Sep 17 00:00:00 2001 From: Jan Dubois Date: Tue, 14 Dec 2010 15:40:17 -0800 Subject: [PATCH] #define some symbols for VC6 compatibility HWND_MESSAGE and WC_NO_BEST_FIT_CHARS are not defined by the VC6 headers unless WINVER is set to 0x0500 or higher, but then the headers will generate a lot of warnings because Windows 2000 was still in beta when those headers where released. PROCESSOR_ARCHITCTURE_AMD64 is not defined at all in the VC6 headers. --- win32/win32.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/win32/win32.c b/win32/win32.c index 228ddde..019e681 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -22,6 +22,18 @@ #include +#ifndef HWND_MESSAGE +# define HWND_MESSAGE ((HWND)-3) +#endif + +#ifndef PROCESSOR_ARCHITECTURE_AMD64 +# define PROCESSOR_ARCHITECTURE_AMD64 9 +#endif + +#ifndef WC_NO_BEST_FIT_CHARS +# define WC_NO_BEST_FIT_CHARS 0x00000400 +#endif + #include #include #include -- 2.7.4