From 998049a618025acd065ced6ca52655601f5ba489 Mon Sep 17 00:00:00 2001 From: zuu Date: Sun, 5 Jan 2014 10:15:57 +0000 Subject: (svn r26226) -Fix (r26212): Compilation in visual studio 2008 failed --- src/stdafx.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/stdafx.h b/src/stdafx.h index 30facd337..951ab1c38 100644 --- a/src/stdafx.h +++ b/src/stdafx.h @@ -215,6 +215,11 @@ #pragma warning(disable: 6255) // code analyzer: _alloca indicates failure by raising a stack overflow exception. Consider using _malloca instead #pragma warning(disable: 6246) // code analyzer: Local declaration of 'statspec' hides declaration of the same name in outer scope. For additional information, see previous declaration at ... + #if (_MSC_VER == 1500) // Addresses item #13 on http://blogs.msdn.com/b/vcblog/archive/2008/08/11/tr1-fixes-in-vc9-sp1.aspx, for Visual Studio 2008 + #define _DO_NOT_DECLARE_INTERLOCKED_INTRINSICS_IN_MEMORY + #include + #endif + #include // alloca() #define NORETURN __declspec(noreturn) #define inline __forceinline -- cgit v1.2.3-70-g09d2