dbm/include/watcomfx.h
author kirk.erickson%sun.com
Wed, 02 Oct 2002 23:11:39 +0000
changeset 3673 4331b6fb4a01af78167420744f7e80595b3723be
parent 0 9949429068caa6bb8827a8ceeaa7c605d722f47f
child 9025 4438a8e062f1446d90a06f80547b0bc208ad4cde
permissions -rw-r--r--
Fixes 158683, adds new directory mozilla/security/nss/pkg/solaris. And 'solarispkg' target to mozilla/security/nss/Makefile.

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

#endif /* once */
#endif /* WATCOM compiler */