]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/wrapgdip.h
remove warnings
[wxWidgets.git] / include / wx / msw / wrapgdip.h
CommitLineData
0024ec50
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/msw/wrapgdip.h
3// Purpose: wrapper around <gdiplus.h> header
4// Author: Vadim Zeitlin
5// Created: 2007-03-15
6// RCS-ID: $Id$
7// Copyright: (c) 2007 Vadim Zeitlin <vadim@wxwindows.org>
8// Licence: wxWindows licence
9///////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_MSW_WRAPGDIP_H_
12#define _WX_MSW_WRAPGDIP_H_
13
14#include "wx/msw/wrapwin.h"
15
16// these macros must be defined before gdiplus.h is included but we explicitly
17// prevent windows.h from defining them in wx/msw/wrapwin.h as they conflict
18// with standard functions of the same name elsewhere, so we have to pay for it
19// by manually redefining them ourselves here
20#ifndef max
21 #define max(a,b) (((a) > (b)) ? (a) : (b))
22#endif
23
24#ifndef min
25 #define min(a,b) (((a) < (b)) ? (a) : (b))
26#endif
27
28#include <gdiplus.h>
29using namespace Gdiplus;
30
31#endif // _WX_MSW_WRAPGDIP_H_
32