1 #if defined(__WATCOMC__) || defined(__WATCOM_CPLUSPLUS__)
2 #ifndef __WATCOM_FIX_H__
3 #define __WATCOM_FIX_H__ 1
5 * WATCOM's C compiler doesn't default to "__cdecl" conventions for external
6 * symbols and functions. Rather than adding an explicit __cdecl modifier to
7 * every external symbol and function declaration and definition, we use the
8 * following pragma to (attempt to) change WATCOM c's default to __cdecl.
9 * These pragmas were taken from pages 180-181, 266 & 269 of the
10 * Watcom C/C++ version 11 User's Guide, 3rd edition.
12 #if defined(XP_WIN16) || defined(WIN16)
13 #pragma aux default "_*" \
15 value struct float struct routine [ax] \
16 modify [ax bx cx dx es]
18 #pragma aux default "_*" \
20 value struct float struct routine [eax] \
23 #pragma aux default far
26 #endif /* WATCOM compiler */