source: trunk/contrib/gdiplus/include/GdiplusBase.h @ 980

Last change on this file since 980 was 980, checked in by sam, 11 years ago

contrib: add GDI+ headers and static library for Linux cross-compilation.

  • Property svn:keywords set to Id
File size: 833 bytes
Line 
1/**************************************************************************\
2*
3* Copyright (c) 1998-2001, Microsoft Corp.  All Rights Reserved.
4*
5* Module Name:
6*
7*   GdiplusBase.h
8*
9* Abstract:
10*
11*   GDI+ base memory allocation class
12*
13\**************************************************************************/
14
15#ifndef _GDIPLUSBASE_H
16#define _GDIPLUSBASE_H
17
18class GdiplusBase
19{
20public:
21    void (operator delete)(void* in_pVoid)
22    {
23       DllExports::GdipFree(in_pVoid);
24    }
25    void* (operator new)(size_t in_size)
26    {
27       return DllExports::GdipAlloc(in_size);
28    }
29    void (operator delete[])(void* in_pVoid)
30    {
31       DllExports::GdipFree(in_pVoid);
32    }
33    void* (operator new[])(size_t in_size)
34    {
35       return DllExports::GdipAlloc(in_size);
36    }
37};
38
39#endif
40
Note: See TracBrowser for help on using the repository browser.