__FUNCTION__ is gcc extension, use __func__ now. Fixes issue #288

This commit is contained in:
Dave Davenport 2015-12-02 18:11:23 +01:00
parent e4c7fe8f1e
commit dbd7476054
1 changed files with 2 additions and 2 deletions

View File

@ -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