From 10e6c7cce60cf54a7c2e883fa02101bb2921f195 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Wed, 23 Jul 2014 10:54:59 -0700 Subject: Only use "final" on MSVS2012+, to keep pdfium building with 2010. BUG=pdfium:26 TBR=bo_xu@foxitsoftware.com Review URL: https://codereview.chromium.org/418463002 --- core/include/fxcrt/fx_system.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/include/fxcrt/fx_system.h b/core/include/fxcrt/fx_system.h index a757de4c5e..7488e9d2dc 100644 --- a/core/include/fxcrt/fx_system.h +++ b/core/include/fxcrt/fx_system.h @@ -276,7 +276,7 @@ int FXSYS_round(FX_FLOAT f); #ifdef __cplusplus }; -#if defined(__clang__) || defined(_MSC_VER) +#if defined(__clang__) || _MSC_VER >= 1700 #define FX_FINAL final #elif defined(__GNUC__) && __cplusplus >= 201103 && \ (__GNUC__ * 10000 + __GNUC_MINOR__ * 100) >= 40700 -- cgit v1.2.3