diff options
author | Jan Dubois <jand@activestate.com> | 2010-12-14 15:40:17 -0800 |
---|---|---|
committer | Jan Dubois <jand@activestate.com> | 2010-12-14 16:50:43 -0800 |
commit | 8e564886c8ebc2b7a1ef021fd382c03c5908da57 (patch) | |
tree | b2f55da0b539ad9219b3d73f469dcbaa5ed65c39 /win32 | |
parent | 6b217b36163b5443c055a23c59d582cd363bb7b1 (diff) | |
download | perl-8e564886c8ebc2b7a1ef021fd382c03c5908da57.tar.gz |
#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.
Diffstat (limited to 'win32')
-rw-r--r-- | win32/win32.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c index 228dddedb8..019e681828 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -22,6 +22,18 @@ #include <windows.h> +#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 <winnt.h> #include <commctrl.h> #include <tlhelp32.h> |