Only use "final" on MSVS2012+, to keep pdfium building with 2010.
authorNico Weber <thakis@chromium.org>
Wed, 23 Jul 2014 17:54:59 +0000 (10:54 -0700)
committerNico Weber <thakis@chromium.org>
Wed, 23 Jul 2014 17:54:59 +0000 (10:54 -0700)
BUG=pdfium:26
TBR=bo_xu@foxitsoftware.com

Review URL: https://codereview.chromium.org/418463002

core/include/fxcrt/fx_system.h

index a757de4..7488e9d 100644 (file)
@@ -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