From dbd74760540d8c36763983a2fc410db13269e847 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Wed, 2 Dec 2015 18:11:23 +0100 Subject: [PATCH] __FUNCTION__ is gcc extension, use __func__ now. Fixes issue #288 --- include/timings.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/timings.h b/include/timings.h index 0bd6909c..4d18a4c6 100644 --- a/include/timings.h +++ b/include/timings.h @@ -8,8 +8,8 @@ void rofi_timings_tick ( char const *str, int line, char const *msg ); void rofi_timings_quit ( void ); #define TIMINGS_START() rofi_timings_init () -#define TICK() rofi_timings_tick ( __FUNCTION__, __LINE__, "" ) -#define TICK_N( a ) rofi_timings_tick ( __FUNCTION__, __LINE__, a ) +#define TICK() rofi_timings_tick ( __func__, __LINE__, "" ) +#define TICK_N( a ) rofi_timings_tick ( __func__, __LINE__, a ) #define TIMINGS_STOP() rofi_timings_quit () #else