tagging release
[dasher.git] / Src / Common / Expat / lib / internal.h
blob6e2c5ed45f879cf3586367f630f1abd76e90d800
1 /* internal.h
3 Internal definitions used by Expat. This is not needed to compile
4 client code.
6 The following definitions are made:
8 FASTCALL -- Used for most internal functions to specify that the
9 fastest possible calling convention be used.
11 inline -- Used for selected internal functions for which inlining
12 may improve performance on some platforms.
15 #if defined(__GNUC__)
16 /* Last minute instability reported with egcs on a RedHat Linux 7.3
17 box; argh!
19 /* #define FASTCALL __attribute__((stdcall, regparm(3))) */
20 #elif defined(WIN32)
21 /* XXX This seems to have an unexpected negative effect on Windows so
22 we'll disable it for now on that platform. It may be reconsidered
23 for a future release if it can be made more effective.
25 /* #define FASTCALL __fastcall */
26 #endif
28 #ifndef FASTCALL
29 #define FASTCALL
30 #endif
32 #ifndef XML_MIN_SIZE
33 #if !defined(__cplusplus) && !defined(inline)
34 #ifdef __GNUC__
35 #define inline __inline
36 #endif /* __GNUC__ */
37 #endif
38 #endif /* XML_MIN_SIZE */
40 #ifdef __cplusplus
41 #define inline inline
42 #else
43 #ifndef inline
44 #define inline
45 #endif
46 #endif