Mercurial > dwindows
comparison dw.hpp @ 2926:5b584c5ddc96
C++: GCC before 4.7 also doesn't support final.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 30 Dec 2022 01:03:18 +0000 |
parents | 32bd25b05918 |
children | 03167ee949fd |
comparison
equal
deleted
inserted
replaced
2925:32bd25b05918 | 2926:5b584c5ddc96 |
---|---|
24 #endif | 24 #endif |
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 #define final | |
29 #endif | 30 #endif |
30 | 31 |
31 // Attempt to allow compilation on MSVC older than 2012 | 32 // Attempt to allow compilation on MSVC older than 2012 |
32 #if defined(_MSC_VER) && _MSC_VER < 1700 | 33 #if defined(_MSC_VER) && _MSC_VER < 1700 |
33 #define final | 34 #define final |