From 124803b4761e887791b4aaadab1d3ceb2abb1932 Mon Sep 17 00:00:00 2001 From: mahlemiut Date: Fri, 24 Oct 2014 01:03:08 +1300 Subject: [PATCH] Add check for GCC 4.4.4+ for pragma, definitely doesn't work with 4.4.3 --- src/emu/inpttype.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emu/inpttype.h b/src/emu/inpttype.h index 841b9ed332a..c581b4b6de2 100644 --- a/src/emu/inpttype.h +++ b/src/emu/inpttype.h @@ -20,7 +20,7 @@ typelist.append(*global_alloc(input_type_entry(IPT_##_type, IPG_##_group, (_player == 0) ? _player : (_player) - 1, (_player == 0) ? #_type : ("P" #_player "_" #_type), _name, _seq, _decseq, _incseq))); /* These input port macros expand to a great deal of code and break compilers */ -#if defined(__GNUC__) && __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) +#if defined(__GNUC__) && __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) || (__GNUC__ == 4 && __GNUC_MINOR__ == 4 && __GNUC_PATCHLEVEL__ >= 4) #pragma GCC optimize ("O1") #endif #ifdef _MSC_VER