X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/77ffb5937e89927b621128789401db8921fe580f..61581d48be4b9b8818d5d743dc12c5e1ca2afd0e:/include/wx/msw/wrapwin.h diff --git a/include/wx/msw/wrapwin.h b/include/wx/msw/wrapwin.h index 5cd923c50c..72c0d8cd17 100644 --- a/include/wx/msw/wrapwin.h +++ b/include/wx/msw/wrapwin.h @@ -5,7 +5,7 @@ // Created: 2003/07/22 // RCS-ID: $Id$ // Copyright: (c) 2003 Vaclav Slavik -// Licence: wxWidgets licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// #ifndef _WX_WRAPWIN_H_ @@ -17,6 +17,11 @@ #define STRICT 1 #endif +// don't define min() and max() as macros, they conflict with standard C++ ones +#ifndef NOMINMAX + #define NOMINMAX +#endif // NOMINMAX + #include #ifdef __WXWINCE__ @@ -44,6 +49,7 @@ // with newer SDK headers #if !defined(__WIN64__) && !defined(__WXWINCE__) #define UINT_PTR unsigned int + #define LONG_PTR long #define ULONG_PTR unsigned long #define DWORD_PTR unsigned long #endif // !__WIN64__