From 6e7d866d3cb2967197c425a8bc476e90832bfcbf Mon Sep 17 00:00:00 2001 From: James Crook Date: Sat, 18 Apr 2015 09:22:46 +0100 Subject: [PATCH] Struct initialiser changed to use = for gcc 4.0 compatibility --- src/Diags.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Diags.h b/src/Diags.h index 41ee6689b..aeffd6a21 100644 --- a/src/Diags.h +++ b/src/Diags.h @@ -55,20 +55,20 @@ extern void diagnostics_do_perfmon_stop( t_diag_struct ** ppDiag); // static ensures struct is initialised just once. // No function is called after the countdown is counted out. #define DIAG( message ) { \ - static t_diag_struct diag{ DEFAULT_LOG_COUNT, DEFAULT_LOG_COUNT, 0,0,0,0,wxT(message)};\ + static t_diag_struct diag = { DEFAULT_LOG_COUNT, DEFAULT_LOG_COUNT, 0,0,0,0,wxT(message)};\ if( --diag.countdown >=0 )\ diagnostics_do_diag( &diag );\ } #define TRACK_MEM( message, amount ) { \ - static t_diag_struct diag{ DEFAULT_LOG_COUNT, DEFAULT_LOG_COUNT, 0,0,0,0,wxT(message)};\ + static t_diag_struct diag = { DEFAULT_LOG_COUNT, DEFAULT_LOG_COUNT, 0,0,0,0,wxT(message)};\ if( --diag.countdown >=0 )\ diagnostics_do_diag_mem( &diag, amount );\ } #define TIMER_START( message, timername )\ MAKE_TIMER( timername ); { \ - static t_diag_struct diag{ DEFAULT_LOG_COUNT, DEFAULT_LOG_COUNT, 0,0,0,0,wxT(message)};\ + static t_diag_struct diag = { DEFAULT_LOG_COUNT, DEFAULT_LOG_COUNT, 0,0,0,0,wxT(message)};\ if( --diag.countdown >=0 )\ diagnostics_do_perfmon_start( &diag, &timername );\ }