From 557f663ec9d9201af569e898c4bd2d1dcf0c1c02 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Sat, 28 Mar 2015 18:55:42 +0000 Subject: [PATCH] Fix detection of always_inline attribute with mingw 4.9.2 Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3909 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 0ff1bf87..455997e1 100644 --- a/configure.ac +++ b/configure.ac @@ -152,7 +152,7 @@ CFLAGS="-Werror" AH_TEMPLATE([C_ATTRIBUTE_ALWAYS_INLINE],[Determines if the compilers supports always_inline attribute.]) AC_MSG_CHECKING(if compiler allows __attribute__((always_inline)) ) -AC_COMPILE_IFELSE([AC_LANG_SOURCE([ void __attribute__((always_inline)) test(){} +AC_COMPILE_IFELSE([AC_LANG_SOURCE([ inline void __attribute__((always_inline)) test(){} ])],[ AC_MSG_RESULT(yes);AC_DEFINE(C_ATTRIBUTE_ALWAYS_INLINE)],AC_MSG_RESULT(no)) AH_TEMPLATE([C_ATTRIBUTE_FASTCALL],[Determines if the compilers supports fastcall attribute.])