summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/replace/README2
-rw-r--r--source3/lib/replace/replace.h10
2 files changed, 11 insertions, 1 deletions
diff --git a/source3/lib/replace/README b/source3/lib/replace/README
index d63847556c..c2de560314 100644
--- a/source3/lib/replace/README
+++ b/source3/lib/replace/README
@@ -79,8 +79,10 @@ va_copy
__FUNCTION__
__FILE__
__LINE__
+__LINESTR__
__location__
__STRING
+__STRINGSTRING
MIN
MAX
QSORT_CAST
diff --git a/source3/lib/replace/replace.h b/source3/lib/replace/replace.h
index 0d462b613d..840b448d24 100644
--- a/source3/lib/replace/replace.h
+++ b/source3/lib/replace/replace.h
@@ -439,8 +439,16 @@ typedef int bool;
#define __STRING(x) #x
#endif
+#ifndef _STRINGSTRING
+#define __STRINGSTRING(x) __STRING(x)
+#endif
+
+#ifndef __LINESTR__
+#define __LINESTR__ __STRINGSTRING(__LINE__)
+#endif
+
#ifndef __location__
-#define __location__ __FILE__ ":" __STRING(__LINE__)
+#define __location__ __FILE__ ":" __LINESTR__
#endif
#if MMAP_BLACKLIST