2 * $Id: openpam_attr.h,v 1.1.1.1 2008/01/27 00:54:59 christos Exp $
5 #ifndef SECURITY_PAM_ATTRIBUTES_H_INCLUDED
6 #define SECURITY_PAM_ATTRIBUTES_H_INCLUDED
9 #if defined(__GNUC__) && defined(__GNUC_MINOR__) && !defined(__STRICT_ANSI__)
10 # define OPENPAM_GNUC_PREREQ(maj, min) \
11 ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
13 # define OPENPAM_GNUC_PREREQ(maj, min) 0
16 #if OPENPAM_GNUC_PREREQ(2,5)
17 # define OPENPAM_FORMAT(params) __attribute__((__format__ params))
19 # define OPENPAM_FORMAT(params)
22 #if OPENPAM_GNUC_PREREQ(3,3)
23 # define OPENPAM_NONNULL(params) __attribute__((__nonnull__ params))
25 # define OPENPAM_NONNULL(params)
28 #endif /* !SECURITY_PAM_ATTRIBUTES_H_INCLUDED */