Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include use foo - 0 instead of testing for defined(foo); fro...
details: https://anonhg.NetBSD.org/src/rev/85c9197614aa
branches: trunk
changeset: 344292:85c9197614aa
user: christos <christos%NetBSD.org@localhost>
date: Sun Mar 20 16:26:06 2016 +0000
description:
use foo - 0 instead of testing for defined(foo); from joerg@
diffstat:
include/stddef.h | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (19 lines):
diff -r 13ce3d3f484c -r 85c9197614aa include/stddef.h
--- a/include/stddef.h Sun Mar 20 14:58:10 2016 +0000
+++ b/include/stddef.h Sun Mar 20 16:26:06 2016 +0000
@@ -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 @@
(&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;
Home |
Main Index |
Thread Index |
Old Index