Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys C++11 no longer requires __STDC_LIMIT_MACROS, __STDC...
details: https://anonhg.NetBSD.org/src/rev/a6aa647fc72f
branches: trunk
changeset: 786262:a6aa647fc72f
user: joerg <joerg%NetBSD.org@localhost>
date: Mon Apr 22 21:26:48 2013 +0000
description:
C++11 no longer requires __STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS or
__STDC_FORMAT_MACROS to be set for the C headers to work.
diffstat:
sys/sys/inttypes.h | 5 +++--
sys/sys/stdint.h | 8 +++++---
2 files changed, 8 insertions(+), 5 deletions(-)
diffs (44 lines):
diff -r bfae51cbbfb8 -r a6aa647fc72f sys/sys/inttypes.h
--- a/sys/sys/inttypes.h Mon Apr 22 21:06:26 2013 +0000
+++ b/sys/sys/inttypes.h Mon Apr 22 21:26:48 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: inttypes.h,v 1.5 2008/04/28 20:24:10 martin Exp $ */
+/* $NetBSD: inttypes.h,v 1.6 2013/04/22 21:26:48 joerg Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -38,7 +38,8 @@
#include <sys/stdint.h>
-#if !defined(__cplusplus) || defined(__STDC_FORMAT_MACROS)
+#if !defined(__cplusplus) || defined(__STDC_FORMAT_MACROS) || \
+ (__cplusplus >= 201103L)
#include <machine/int_fmtio.h>
#endif
diff -r bfae51cbbfb8 -r a6aa647fc72f sys/sys/stdint.h
--- a/sys/sys/stdint.h Mon Apr 22 21:06:26 2013 +0000
+++ b/sys/sys/stdint.h Mon Apr 22 21:26:48 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: stdint.h,v 1.6 2008/04/28 20:24:11 martin Exp $ */
+/* $NetBSD: stdint.h,v 1.7 2013/04/22 21:26:48 joerg Exp $ */
/*-
* Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
@@ -87,11 +87,13 @@
#include <machine/int_mwgwtypes.h>
-#if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS)
+#if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) || \
+ (__cplusplus >= 201103L)
#include <machine/int_limits.h>
#endif
-#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS)
+#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) || \
+ (__cplusplus >= 201103L)
#include <machine/int_const.h>
#endif
Home |
Main Index |
Thread Index |
Old Index