Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / ntp / include / global.h
blob063aac6498848fdb644b8e336cffb51f9cfbeea1
1 /* $NetBSD$ */
3 /* GLOBAL.H - RSAREF types and constants */
5 /* Copyright (C) RSA Laboratories, a division of RSA Data Security,
6 Inc., created 1991. All rights reserved.
7 */
9 /*
10 * Note: the modifications are necessary for little-endian machines
12 #include "ntp_types.h" /* local modification */
14 #ifndef _GLOBAL_H_
15 #define _GLOBAL_H_ 1
17 /* PROTOTYPES should be set to one if and only if the compiler supports
18 function argument prototyping.
19 The following makes PROTOTYPES default to 1 if it has not already been
20 defined as 0 with C compiler flags.
22 #ifdef HAVE_PROTOTYPES
23 #define PROTOTYPES 1
24 #endif
26 /* POINTER defines a generic pointer type */
27 typedef unsigned char *POINTER;
29 /* UINT2 defines a two byte word */
30 typedef unsigned short int UINT2;
32 /* UINT4 defines a four byte word */
33 typedef u_int32 UINT4; /* local modification */
35 /* BYTE defines a unsigned character */
36 typedef unsigned char BYTE; /* local modification for RSAEuro */
38 #ifndef NULL_PTR
39 #define NULL_PTR ((POINTER)0)
40 #endif
42 #ifndef UNUSED_ARG
43 #define UNUSED_ARG(x) x = *(&x);
44 #endif
46 /* PROTO_LIST is defined depending on how PROTOTYPES is defined above.
47 If using PROTOTYPES, then PROTO_LIST returns the list, otherwise it
48 returns an empty list.
50 #if PROTOTYPES
51 #define PROTO_LIST(list) list
52 #else
53 #define PROTO_LIST(list) ()
54 #endif
56 #endif /* end _GLOBAL_H_ */