]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/wrapwin.h
Changed some version numbers to 2.5.2
[wxWidgets.git] / include / wx / msw / wrapwin.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: msw/wrapwin.h
3 // Purpose: Wrapper around <windows.h>, to be included instead of it
4 // Author: Vaclav Slavik
5 // Created: 2003/07/22
6 // RCS-ID: $Id$
7 // Copyright: (c) 2003 Vaclav Slavik
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_WRAPWIN_H_
12 #define _WX_WRAPWIN_H_
13
14 #include "wx/platform.h"
15
16 #ifndef STRICT
17 #define STRICT 1
18 #endif
19
20 #include <windows.h>
21 #include "wx/msw/winundef.h"
22
23 // types DWORD_PTR, ULONG_PTR and so on might be not defined in old headers but
24 // unfortunately I don't know of any standard way to test for this (as they're
25 // typedefs and not #defines), so simply overwrite them in any case in Win32
26 // mode -- and if compiling for Win64 they'd better have new headers anyhow
27 //
28 // this is ugly but what else can we do? even testing for compiler version
29 // wouldn't help as you can perfectly well be using an older compiler (VC6)
30 // with newer SDK headers
31 #if !defined(__WIN64__) && !defined(__WXWINCE__)
32 #define UINT_PTR unsigned int
33 #define ULONG_PTR unsigned long
34 #define DWORD_PTR unsigned long
35 #endif // !__WIN64__
36
37 #endif // _WX_WRAPWIN_H_
38