Expand PMF_FN_* macros.
[netbsd-mini2440.git] / dist / openpam / include / security / openpam_attr.h
blob53dd0cef5b8d3b1935a40394bc864099ac41c2c9
1 /*
2 * $Id: openpam_attr.h,v 1.1.1.1 2008/01/27 00:54:59 christos Exp $
3 */
5 #ifndef SECURITY_PAM_ATTRIBUTES_H_INCLUDED
6 #define SECURITY_PAM_ATTRIBUTES_H_INCLUDED
8 /* GCC attributes */
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))
12 #else
13 # define OPENPAM_GNUC_PREREQ(maj, min) 0
14 #endif
16 #if OPENPAM_GNUC_PREREQ(2,5)
17 # define OPENPAM_FORMAT(params) __attribute__((__format__ params))
18 #else
19 # define OPENPAM_FORMAT(params)
20 #endif
22 #if OPENPAM_GNUC_PREREQ(3,3)
23 # define OPENPAM_NONNULL(params) __attribute__((__nonnull__ params))
24 #else
25 # define OPENPAM_NONNULL(params)
26 #endif
28 #endif /* !SECURITY_PAM_ATTRIBUTES_H_INCLUDED */