diff options
Diffstat (limited to 'src/gui_dwrite.cpp')
-rw-r--r-- | src/gui_dwrite.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui_dwrite.cpp b/src/gui_dwrite.cpp index 07685eb09..9873c6728 100644 --- a/src/gui_dwrite.cpp +++ b/src/gui_dwrite.cpp @@ -33,6 +33,12 @@ # define __out SAL__out #endif +#if (defined(_MSC_VER) && (_MSC_VER >= 1700)) || (__cplusplus >= 201103L) +# define FINAL final +#else +# define FINAL +#endif + #ifdef DYNAMIC_DIRECTX extern "C" HINSTANCE vimLoadLib(char *name); @@ -222,7 +228,7 @@ public: } }; -class GdiTextRenderer : public IDWriteTextRenderer +class GdiTextRenderer FINAL : public IDWriteTextRenderer { public: GdiTextRenderer( |