1N/A * Copyright (c) 2000-2002 Sendmail, Inc. and its suppliers. 1N/A * All rights reserved. 1N/A * By using this file, you agree to the terms and conditions set 1N/A * forth in the LICENSE file which can be found at the top level of 1N/A * the sendmail distribution. 1N/A * $Id: cdefs.h,v 1.15.2.1 2003/12/05 22:44:17 ca Exp $ 1N/A#
pragma ident "%Z%%M% %I% %E% SMI" 1N/A** libsm C language portability macros 1N/A** BSD and Linux have <sys/cdefs.h> which defines a set of C language 1N/A** portability macros that are a defacto standard in the open source 1N/A#
endif /* SM_CONF_SYS_CDEFS_H */ 1N/A** Define the standard C language portability macros 1N/A#
else /* defined(__cplusplus) */ 1N/A#
endif /* defined(__cplusplus) */ 1N/A#
else /* defined(__STDC__) || defined(__cplusplus) */ 1N/A#
endif /* defined(__STDC__) || defined(__cplusplus) */ 1N/A#
endif /* !SM_CONF_SYS_CDEFS_H */ 1N/A** Define SM_DEAD, a macro used to declare functions that do not return 1N/A#
else /* __GNUC__ == 2 && __GNUC_MINOR__ < 5 */ 1N/A#
endif /* __GNUC__ == 2 && __GNUC_MINOR__ < 5 */ 1N/A#
else /* __GNUC__ >= 2 */ 1N/A#
endif /* __GNUC__ >= 2 */ 1N/A#
endif /* SM_DEAD */ 1N/A** Define SM_UNUSED, a macro used to declare variables that may be unused. 1N/A#
else /* __GNUC__ == 2 && __GNUC_MINOR__ < 7 */ 1N/A#
endif /* __GNUC__ == 2 && __GNUC_MINOR__ < 7 */ 1N/A#
else /* __GNUC__ >= 2 */ 1N/A#
endif /* __GNUC__ >= 2 */ 1N/A#
endif /* SM_UNUSED */ 1N/A** The SM_NONVOLATILE macro is used to declare variables that are not 1N/A** volatile, but which must be declared volatile when compiling with 1N/A** gcc -O -Wall in order to suppress bogus warning messages. 1N/A** Variables that actually are volatile should be declared volatile 1N/A** using the "volatile" keyword. If a variable actually is volatile, 1N/A** then SM_NONVOLATILE should not be used. 1N/A** To compile sendmail with gcc and see all non-bogus warnings, 1N/A** gcc -O -Wall -DSM_OMIT_BOGUS_WARNINGS ... 1N/A** Do not use -DSM_OMIT_BOGUS_WARNINGS when compiling the production 1N/A** version of sendmail, because there is a performance hit. 1N/A#
else /* SM_OMIT_BOGUS_WARNINGS */ 1N/A#
endif /* SM_OMIT_BOGUS_WARNINGS */ 1N/A** Turn on format string argument checking. 1N/A#
else /* __GNUC__ == 2 && __GNUC_MINOR__ >= 7 */ 1N/A#
endif /* __GNUC__ == 2 && __GNUC_MINOR__ >= 7 */ 1N/A#
endif /* SM_CONF_FORMAT_TEST */ 1N/A#
else /* SM_CONF_FORMAT_TEST */ 1N/A#
endif /* SM_CONF_FORMAT_TEST */ 1N/A#
endif /* ! PRINTFLIKE */ 1N/A#
else /* SM_CONF_FORMAT_TEST */ 1N/A#
endif /* SM_CONF_FORMAT_TEST */ 1N/A#
endif /* ! SCANFLIKE */ 1N/A#
endif /* ! SM_CDEFS_H */