>From 26de34e92b801ec038c97ff83cd3dbcb3416a529 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 18 May 2007 23:15:59 -0700 Subject: [PATCH] Use C99 __func__ instead of gcc-specific __FUNCTION__ in debug macros --- pixman/pixman-private.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pixman/pixman-private.h b/pixman/pixman-private.h index 272fbed..54d79c4 100644 --- a/pixman/pixman-private.h +++ b/pixman/pixman-private.h @@ -17,7 +17,7 @@ #define return_if_fail(expr) \ { \ if (!(expr)) \ { \ - fprintf(stderr, "In %s: %s failed\n", __FUNCTION__, #expr); \ + fprintf(stderr, "In %s: %s failed\n", __func__, #expr); \ return; \ } \ } \ @@ -28,7 +28,7 @@ #define return_val_if_fail(expr, retval) { \ if (!(expr)) \ { \ - fprintf(stderr, "In %s: %s failed\n", __FUNCTION__, #expr); \ + fprintf(stderr, "In %s: %s failed\n", __func__, #expr); \ return (retval); \ } \ } \ -- 1.4.1