summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-05-24 17:21:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:34 -0500
commit548927d79b48906b2caf3fc7b5c83ed075973170 (patch)
tree8f237a8b7f742c4f1592ba92661daa0a76b7b3ab /source4
parent3d448a1851bf2502e020cb101138ba229ae4b83a (diff)
downloadsamba-548927d79b48906b2caf3fc7b5c83ed075973170.tar.gz
samba-548927d79b48906b2caf3fc7b5c83ed075973170.tar.bz2
samba-548927d79b48906b2caf3fc7b5c83ed075973170.zip
r15868: Add replacement macro for __STRING()
(This used to be commit 3780e0580b7173f20fed550db3412ab3b3b12fbf)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/replace/README1
-rw-r--r--source4/lib/replace/replace.h4
2 files changed, 4 insertions, 1 deletions
diff --git a/source4/lib/replace/README b/source4/lib/replace/README
index 9760c75b80..c0c2cdd91d 100644
--- a/source4/lib/replace/README
+++ b/source4/lib/replace/README
@@ -69,6 +69,7 @@ UINT64_MAX
Macros:
va_copy
__FUNCTION__
+__STRING
MIN
MAX
diff --git a/source4/lib/replace/replace.h b/source4/lib/replace/replace.h
index d0575f4b60..62adc1e5d8 100644
--- a/source4/lib/replace/replace.h
+++ b/source4/lib/replace/replace.h
@@ -231,6 +231,8 @@ typedef int bool;
#define MAX(a,b) ((a)>(b)?(a):(b))
#endif
-
+#ifndef __STRING
+#define __STRING(x) #x
+#endif
#endif