Of course, I forgot to commit the new file in revision 22049...
[reactos.git] / reactos / include / gdiplusbase.h
1 /*
2 * GdiPlusBase.h
3 *
4 * Windows GDI+
5 *
6 * This file is part of the w32api package.
7 *
8 * THIS SOFTWARE IS NOT COPYRIGHTED
9 *
10 * This source code is offered for use in the public domain. You may
11 * use, modify or distribute it freely.
12 *
13 * This code is distributed in the hope that it will be useful but
14 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
15 * DISCLAIMED. This includes but is not limited to warranties of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17 */
18
19 #ifndef _GDIPLUSBASE_H
20 #define _GDIPLUSBASE_H
21
22 #if __GNUC__ >= 3
23 #pragma GCC system_header
24 #endif
25
26 class GdiplusBase {
27 public:
28 void operator delete(void *in_pVoid)
29 {
30 DllExports::GdipFree(in_pVoid);
31 }
32
33 void operator delete[](void *in_pVoid)
34 {
35 DllExports::GdipFree(in_pVoid);
36 }
37
38 void *operator new(size_t in_size)
39 {
40 return DllExports::GdipAlloc(in_size);
41 }
42
43 void *operator new[](size_t in_size)
44 {
45 return DllExports::GdipAlloc(in_size);
46 }
47 };
48
49 #endif /* _GDIPLUSBASE_H */