comparison dw.hpp @ 2873:0bbfb19022e7

C++: GCC prior to 4.7 does not support the override keyword. So if using earlier versions of GCC, just remove override. This allows compilation on ancient GCC and GCC based Xcode. Also remove virtual from the application, I don't think it is needed and old GCC pukes on it when it is there.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 19 Dec 2022 07:42:12 +0000
parents e62fc9b3b09c
children 585d0053b766
comparison
equal deleted inserted replaced
2872:e62fc9b3b09c 2873:0bbfb19022e7
11 #if __cplusplus >= 201103L 11 #if __cplusplus >= 201103L
12 #define DW_NULL nullptr 12 #define DW_NULL nullptr
13 #else 13 #else
14 #define DW_NULL NULL 14 #define DW_NULL NULL
15 #endif 15 #endif
16
17 // Attempt to allow compilation on GCC older than 4.7
18 #if defined(__GNUC__) && (__GNuC__ < 5 || (__GNUC__ == 4 && __GNUC_MINOR__ < 7))
19 #define override
20 #endif
16 21
17 namespace DW 22 namespace DW
18 { 23 {
19 24
20 // Base handle class which allows opaque access to 25 // Base handle class which allows opaque access to