diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/c++/variant.yy | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/c++/variant.yy b/examples/c++/variant.yy index f77a746a..8fba6325 100644 --- a/examples/c++/variant.yy +++ b/examples/c++/variant.yy @@ -98,7 +98,7 @@ item: namespace yy { // Use nullptr with pre-C++11. -#if defined __cplusplus && __cplusplus < 201103L +#if !defined __cplusplus || __cplusplus < 201103L # define NULLPTR 0 #else # define NULLPTR nullptr |