1 /* $NetBSD: openpam_attr.h,v 1.3 2013/04/06 02:20:30 christos Exp $ */ 2 3 /* 4 * Id: openpam_attr.h 405 2007-12-19 11:38:27Z des 5 */ 6 7 #ifndef SECURITY_PAM_ATTRIBUTES_H_INCLUDED 8 #define SECURITY_PAM_ATTRIBUTES_H_INCLUDED 9 10 /* GCC attributes */ 11 #if defined(__GNUC__) && defined(__GNUC_MINOR__) && !defined(__STRICT_ANSI__) 12 # define OPENPAM_GNUC_PREREQ(maj, min) \ 13 ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min)) 14 #else 15 # define OPENPAM_GNUC_PREREQ(maj, min) 0 16 #endif 17 18 #if OPENPAM_GNUC_PREREQ(2,5) 19 # define OPENPAM_FORMAT(params) __attribute__((__format__ params)) 20 #else 21 # define OPENPAM_FORMAT(params) 22 #endif 23 24 #if OPENPAM_GNUC_PREREQ(3,3) 25 # define OPENPAM_NONNULL(params) __attribute__((__nonnull__ params)) 26 #else 27 # define OPENPAM_NONNULL(params) 28 #endif 29 30 #endif /* !SECURITY_PAM_ATTRIBUTES_H_INCLUDED */ 31