diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2008-01-30 22:29:39 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2008-01-30 22:29:39 +0100 |
commit | aebfd0bc1da1a6fbd681bb9179ad6c34db844d0d (patch) | |
tree | 54aff19620e1eb65d05cfd441540e4696fb8936e /compat | |
parent | 062a2d3c0d53549f7b3b02b94217c2891e74f623 (diff) |
define __STRING() if it's not defined by the system
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@579 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'compat')
-rw-r--r-- | compat/attrs.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compat/attrs.h b/compat/attrs.h index d560587..eb2e5c2 100644 --- a/compat/attrs.h +++ b/compat/attrs.h @@ -58,4 +58,13 @@ #endif /* not __GNUC__ */ +/* define __STRING if it's not yet defined */ +#ifndef __STRING +#ifdef __STDC__ +#define __STRING(x) #x +#else /* __STDC__ */ +#define __STRING(x) "x" +#endif /* not __STDC__ */ +#endif /* not __STRING */ + #endif /* not _COMPAT_ATTRS_H */ |