]> git.saurik.com Git - wxWidgets.git/blob - src/xrc/expat/xmltok/xmldef.h
The mac toolbar was redrawing buttons when not shown -
[wxWidgets.git] / src / xrc / expat / xmltok / xmldef.h
1 /*
2 Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd
3 See the file copying.txt for copying permission.
4 */
5
6 #include <string.h>
7
8 #ifdef XML_WINLIB
9
10 #define WIN32_LEAN_AND_MEAN
11 #define STRICT
12 #include <windows.h>
13
14 #define malloc(x) HeapAlloc(GetProcessHeap(), 0, (x))
15 #define calloc(x, y) HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, (x)*(y))
16 #define free(x) HeapFree(GetProcessHeap(), 0, (x))
17 #define realloc(x, y) HeapReAlloc(GetProcessHeap(), 0, x, y)
18 #define abort() /* as nothing */
19
20 #else /* not XML_WINLIB */
21
22 #include <stdlib.h>
23
24 #endif /* not XML_WINLIB */
25
26 /* This file can be used for any definitions needed in
27 particular environments. */
28
29 /* Mozilla specific defines */
30
31 #ifdef MOZILLA_CLIENT
32
33 #include "nspr.h"
34 #define malloc(x) PR_Malloc((size_t)(x))
35 #define realloc(x, y) PR_Realloc((x), (size_t)(y))
36 #define calloc(x, y) PR_Calloc((x),(y))
37 #define free(x) PR_Free(x)
38 #if PR_BYTES_PER_INT != 4
39 #define int int32
40 #endif
41
42 /* Enable Unicode string processing in expat. */
43 #ifndef XML_UNICODE
44 #define XML_UNICODE
45 #endif
46
47 /* Enable external parameter entity parsing in expat */
48 #ifndef XML_DTD
49 #define XML_DTD 1
50 #endif
51
52 #endif /* MOZILLA_CLIENT */