Back to index

lightning-sunbird  0.9+nobinonly
watcomfx.h
Go to the documentation of this file.
00001 #if defined(__WATCOMC__) || defined(__WATCOM_CPLUSPLUS__)
00002 #ifndef __WATCOM_FIX_H__
00003 #define __WATCOM_FIX_H__ 1
00004 /*
00005  * WATCOM's C compiler doesn't default to "__cdecl" conventions for external
00006  * symbols and functions.  Rather than adding an explicit __cdecl modifier to 
00007  * every external symbol and function declaration and definition, we use the 
00008  * following pragma to (attempt to) change WATCOM c's default to __cdecl.
00009  * These pragmas were taken from pages 180-181, 266 & 269 of the 
00010  * Watcom C/C++ version 11 User's Guide, 3rd edition.
00011  */
00012 #if defined(XP_WIN16) || defined(WIN16) 
00013 #pragma aux default "_*" \
00014        parm caller [] \
00015        value struct float struct routine [ax] \
00016        modify [ax bx cx dx es]
00017 #else
00018 #pragma aux default "_*" \
00019        parm caller [] \
00020        value struct float struct routine [eax] \
00021        modify [eax ecx edx]
00022 #endif
00023 #pragma aux default far
00024 
00025 #endif /* once */
00026 #endif /* WATCOM compiler */