Mercurial > dwindows
comparison dw.hpp @ 2925:32bd25b05918
C++: Fix MSVC older than 2012 which does not support final keyword.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 29 Dec 2022 23:46:17 +0000 |
parents | 248e32f744f0 |
children | 5b584c5ddc96 |
comparison
equal
deleted
inserted
replaced
2924:248e32f744f0 | 2925:32bd25b05918 |
---|---|
25 | 25 |
26 // Attempt to allow compilation on GCC older than 4.7 | 26 // Attempt to allow compilation on GCC older than 4.7 |
27 #if defined(__GNUC__) && (__GNuC__ < 5 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)) | 27 #if defined(__GNUC__) && (__GNuC__ < 5 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)) |
28 #define override | 28 #define override |
29 #endif | 29 #endif |
30 | |
31 // Attempt to allow compilation on MSVC older than 2012 | |
32 #if defined(_MSC_VER) && _MSC_VER < 1700 | |
33 #define final | |
34 #endif | |
30 | 35 |
31 namespace DW | 36 namespace DW |
32 { | 37 { |
33 | 38 |
34 // Forward declare these so they can be referenced | 39 // Forward declare these so they can be referenced |