equal
deleted
inserted
replaced
|
1 /* Copyright (c) 1998, 1999 Thai Open Source Software Center Ltd |
|
2 See the file COPYING for copying permission. |
|
3 */ |
|
4 /* internal.h |
|
5 |
|
6 Internal definitions used by Expat. This is not needed to compile |
|
7 client code. |
|
8 |
|
9 The following definitions are made: |
|
10 |
|
11 FASTCALL -- Used for most internal functions to specify that the |
|
12 fastest possible calling convention be used. |
|
13 |
|
14 inline -- Used for selected internal functions for which inlining |
|
15 may improve performance on some platforms. |
|
16 */ |
|
17 |
|
18 #if defined(__GNUC__) |
|
19 /* Last minute instability reported with egcs on a RedHat Linux 7.3 |
|
20 box; argh! |
|
21 */ |
|
22 /* #define FASTCALL __attribute__((stdcall, regparm(3))) */ |
|
23 #elif defined(WIN32) |
|
24 /* XXX This seems to have an unexpected negative effect on Windows so |
|
25 we'll disable it for now on that platform. It may be reconsidered |
|
26 for a future release if it can be made more effective. |
|
27 */ |
|
28 /* #define FASTCALL __fastcall */ |
|
29 #endif |
|
30 |
|
31 #ifndef FASTCALL |
|
32 #define FASTCALL |
|
33 #endif |
|
34 |
|
35 #ifndef XML_MIN_SIZE |
|
36 #if !defined(__cplusplus) && !defined(inline) |
|
37 #ifdef __GNUC__ |
|
38 #define inline __inline |
|
39 #endif /* __GNUC__ */ |
|
40 #endif |
|
41 #endif /* XML_MIN_SIZE */ |
|
42 |
|
43 #ifdef __cplusplus |
|
44 #define inline inline |
|
45 #else |
|
46 #ifndef inline |
|
47 #define inline |
|
48 #endif |
|
49 #endif |