From aebfd0bc1da1a6fbd681bb9179ad6c34db844d0d Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Wed, 30 Jan 2008 21:29:39 +0000 Subject: 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 --- compat/attrs.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'compat') 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 */ -- cgit v1.2.3