1 /*
2  * E-UAE - The portable Amiga Emulator
3  *
4  * Malloc replacement
5  *
6  * (c) 2003-2007 Richard Drummond
7  *
8  * Based on code from UAE.
9  * (c) 1995-2002 Bernd Schmidt
10  */
11 
12 #ifndef UAE_MALLOC_H
13 #define UAE_MALLOC_H
14 
15 // This is really no longer needed. - Sven
16 #if 0
17 
18 #if __GNUC__ - 1 > 1
19 # define MALLOC __attribute__((malloc))
20 #else
21 # define MALLOC
22 #endif
23 
24 #if defined(__cplusplus)
25 extern "C" {
26 #endif
27 
28 #ifndef xmalloc
29 extern void *xmalloc (size_t) MALLOC;
30 #endif
31 
32 #ifndef xcalloc
33 extern void *xcalloc (size_t, size_t) MALLOC;
34 #endif
35 
36 #ifndef xfree
37 extern void  xfree   (const void *p);
38 #endif
39 
40 #if defined(__cplusplus)
41 }
42 #endif
43 
44 #endif // 0
45 
46 #endif /* UAE_MALLOC_H */
47