summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-07-24 09:12:10 +0300
committerM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-09-02 04:50:21 +0100
commitb509b548b1e3ac5a9e3de2f9652cd1973d295fa3 (patch)
tree8f0560f27b679085092ae22e73973ae36fb10356 /util
parent2b0e070f6a6bee415b1036fd149f0c41bcf87abb (diff)
[trace] Check for __builtin_return_address explicitly.
Some other compilers such as clang and icc support the __builtin_return_address() intrinsic as well, so we don't need to check for __GNUC__ >= 3 only.
Diffstat (limited to 'util')
-rw-r--r--util/cairo-trace/trace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cairo-trace/trace.c b/util/cairo-trace/trace.c
index 626a81e4..9a1c54e9 100644
--- a/util/cairo-trace/trace.c
+++ b/util/cairo-trace/trace.c
@@ -177,7 +177,7 @@ static bool _line_info;
static bool _mark_dirty;
static const cairo_user_data_key_t destroy_key;
-#if __GNUC__ >= 3
+#if HAVE_BUILTIN_RETURN_ADDRESS
#define _emit_line_info() do { \
if (_line_info && _write_lock ()) { \
void *addr = __builtin_return_address(0); \