summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2016-03-20 16:26:06 +0000
committerchristos <christos@NetBSD.org>2016-03-20 16:26:06 +0000
commita439d6bb27e238c865a3470b94e5690bb02a5be1 (patch)
treea65ad93ccdbf90e4904efaf4c8f6e285ca0e4257 /include
parent14b7cf3cf3fe00fc46b826cc4758e6a4074c141f (diff)
use foo - 0 instead of testing for defined(foo); from joerg@
Diffstat (limited to 'include')
-rw-r--r--include/stddef.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/stddef.h b/include/stddef.h
index c2268745584..1899815ec70 100644
--- a/include/stddef.h
+++ b/include/stddef.h
@@ -1,4 +1,4 @@
-/* $NetBSD: stddef.h,v 1.19 2016/03/20 14:11:49 christos Exp $ */
+/* $NetBSD: stddef.h,v 1.20 2016/03/20 16:26:06 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -67,8 +67,7 @@ typedef _BSD_WCHAR_T_ wchar_t;
(&reinterpret_cast<const volatile char &>(static_cast<type *>(0)->member))))
#endif
-#if (defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) \
- || (defined(__cplusplus) && __cplusplus >= 201103L)
+#if (__STDC_VERSION__ - 0) >= 201112L || (__cplusplus - 0) >= 201103L
typedef union {
void *_v;
long double _ld;