home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / dbm / include / watcomfx.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  919 b   |  27 lines

  1. #if defined(__WATCOMC__) || defined(__WATCOM_CPLUSPLUS__)
  2. #ifndef __WATCOM_FIX_H__
  3. #define __WATCOM_FIX_H__ 1
  4. /*
  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.
  11.  */
  12. #if defined(XP_WIN16) || defined(WIN16) 
  13. #pragma aux default "_*" \
  14.     parm caller [] \
  15.     value struct float struct routine [ax] \
  16.     modify [ax bx cx dx es]
  17. #else
  18. #pragma aux default "_*" \
  19.     parm caller [] \
  20.     value struct float struct routine [eax] \
  21.     modify [eax ecx edx]
  22. #endif
  23. #pragma aux default far
  24.  
  25. #endif /* once */
  26. #endif /* WATCOM compiler */
  27.