summaryrefslogtreecommitdiffstats
path: root/talloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'talloc.h')
-rw-r--r--talloc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/talloc.h b/talloc.h
index 0581bd09c5..909ce80ecf 100644
--- a/talloc.h
+++ b/talloc.h
@@ -58,7 +58,10 @@ typedef void TALLOC_CTX;
/* try to make talloc_set_destructor() and talloc_steal() type safe,
if we have a recent gcc */
-#if (__GNUC__ >= 3)
+#if defined(__clang__) && defined(__llvm__)
+#define _TALLOC_TYPEOF(ptr) void *
+#define talloc_steal(ctx, ptr) _talloc_steal((ctx),(ptr))
+#elif (__GNUC__ >= 3)
#define _TALLOC_TYPEOF(ptr) __typeof__(ptr)
/* this extremely strange macro is to avoid some braindamaged warning
stupidity in gcc 4.1.x */