diff options
author | thayes%netscape.com <devnull@localhost> | 2002-12-11 01:44:37 +0000 |
---|---|---|
committer | thayes%netscape.com <devnull@localhost> | 2002-12-11 01:44:37 +0000 |
commit | 80908b1ec4a5bff5002b4ff383016acc268402cb (patch) | |
tree | 470444a384e84facfcf95f00ebaf60a82df164fd /dbm/include/watcomfx.h | |
parent | b0cd116f66dfedf94db2e3371cc1bcc196025831 (diff) | |
parent | 5637b0d7b13e29612f8287dac80347d3618f051f (diff) | |
download | nss-hg-80908b1ec4a5bff5002b4ff383016acc268402cb.tar.gz |
Bug 184557: Allow usage specified on command line (-u) to be used to validate
certificates used for signing (-S option). Also add special handling for
nickname "NONE" in the -Y option. This specifies that no certificate and
encryption key preference should be included in the signature object.
Diffstat (limited to 'dbm/include/watcomfx.h')
-rw-r--r-- | dbm/include/watcomfx.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/dbm/include/watcomfx.h b/dbm/include/watcomfx.h new file mode 100644 index 000000000..3020e9de9 --- /dev/null +++ b/dbm/include/watcomfx.h @@ -0,0 +1,26 @@ +#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 */ |