From 3dd41c856eb423432814dd1e4af36f7ccffe03d6 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 16 Apr 2007 19:22:24 +0000 Subject: r22270: provide __location__ in replace.h and see how the build-farm likes this simpler version metze (This used to be commit 2abc79680f8342c9a7a6c1f3746489dd598b7bf8) --- source4/lib/replace/README | 3 +++ source4/lib/replace/replace.h | 4 ++++ 2 files changed, 7 insertions(+) (limited to 'source4/lib/replace') diff --git a/source4/lib/replace/README b/source4/lib/replace/README index 8e0e659c7d..d63847556c 100644 --- a/source4/lib/replace/README +++ b/source4/lib/replace/README @@ -77,6 +77,9 @@ CHAR_BIT Macros: va_copy __FUNCTION__ +__FILE__ +__LINE__ +__location__ __STRING MIN MAX diff --git a/source4/lib/replace/replace.h b/source4/lib/replace/replace.h index a5455be2b6..0d462b613d 100644 --- a/source4/lib/replace/replace.h +++ b/source4/lib/replace/replace.h @@ -439,6 +439,10 @@ typedef int bool; #define __STRING(x) #x #endif +#ifndef __location__ +#define __location__ __FILE__ ":" __STRING(__LINE__) +#endif + #if MMAP_BLACKLIST #undef HAVE_MMAP #endif -- cgit