Mercurial > dwindows
changeset 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 |
files | dw.hpp |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dw.hpp Thu Dec 29 23:46:17 2022 +0000 +++ b/dw.hpp Fri Dec 30 01:03:18 2022 +0000 @@ -26,6 +26,7 @@ // Attempt to allow compilation on GCC older than 4.7 #if defined(__GNUC__) && (__GNuC__ < 5 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7)) #define override +#define final #endif // Attempt to allow compilation on MSVC older than 2012