Commit | Line | Data |
---|---|---|
15637ed4 RG |
1 | #ifndef NO_LIBGXX_MALLOC |
2 | ||
3 | // This may look like C code, but it is really -*- C++ -*- | |
4 | ||
5 | /* | |
6 | Copyright (C) 1989 Free Software Foundation | |
7 | written by Doug Lea (dl@oswego.edu) | |
8 | ||
9 | This file is part of GNU CC. | |
10 | ||
11 | GNU CC is distributed in the hope that it will be useful, | |
12 | but WITHOUT ANY WARRANTY. No author or distributor | |
13 | accepts responsibility to anyone for the consequences of using it | |
14 | or for whether it serves any particular purpose or works at all, | |
15 | unless he says so in writing. Refer to the GNU CC General Public | |
16 | License for full details. | |
17 | ||
18 | Everyone is granted permission to copy, modify and redistribute | |
19 | GNU CC, but only under the conditions described in the | |
20 | GNU CC General Public License. A copy of this license is | |
21 | supposed to have been given to you along with GNU CC so you | |
22 | can know your rights and responsibilities. It should be in a | |
23 | file named COPYING. Among other things, the copyright notice | |
24 | and this notice must be preserved on all copies. | |
25 | */ | |
26 | ||
27 | #ifdef __GNUG__ | |
28 | #pragma implementation | |
29 | #endif | |
30 | #include <stddef.h> | |
31 | #include <malloc.h> | |
32 | ||
33 | void operator delete(void* ptr) | |
34 | { | |
35 | free (ptr); | |
36 | } | |
37 | ||
38 | #endif |