Mercurial > dwindows
changeset 2972:5727036821bd
C++: Don't bother with lambdas unless using GCC5.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 20 Mar 2023 23:30:01 +0000 |
parents | 67a1d12cb079 |
children | ac880987a2c4 |
files | dw.hpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dw.hpp Mon Mar 20 23:04:15 2023 +0000 +++ b/dw.hpp Mon Mar 20 23:30:01 2023 +0000 @@ -17,9 +17,9 @@ #define DW_NULL NULL #endif -// Support Lambdas on C++11, Visual C 2015 or GCC 4.5 +// Support Lambdas on C++11, Visual C 2015 or GCC 5 #if defined(DW_CPP11) || (defined(_MSC_VER) && _MSC_VER >= 1900) || \ - (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 4))) + (defined(__GNUC__) && __GNUC__ > 4) #define DW_LAMBDA #include <functional> #endif