Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2008-01-30 22:29:39 +0100
committerArthur de Jong <arthur@arthurdejong.org>2008-01-30 22:29:39 +0100
commitaebfd0bc1da1a6fbd681bb9179ad6c34db844d0d (patch)
tree54aff19620e1eb65d05cfd441540e4696fb8936e /compat
parent062a2d3c0d53549f7b3b02b94217c2891e74f623 (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.h9
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 */