diff options
author | Nico Weber <thakis@chromium.org> | 2014-07-23 10:54:59 -0700 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2014-07-23 10:54:59 -0700 |
commit | 10e6c7cce60cf54a7c2e883fa02101bb2921f195 (patch) | |
tree | 4a9201d71b9499eb4ba362198afb2ef8adbeb488 | |
parent | 46773fdde0cc4a3a519067c1d4ad134eb21d0086 (diff) | |
download | pdfium-10e6c7cce60cf54a7c2e883fa02101bb2921f195.tar.xz |
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
-rw-r--r-- | core/include/fxcrt/fx_system.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |