Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Fix wrong scoping of {U, }LLONG_MAX. Final case, I th...
details: https://anonhg.NetBSD.org/src/rev/9cd52fadd6aa
branches: trunk
changeset: 447700:9cd52fadd6aa
user: dholland <dholland%NetBSD.org@localhost>
date: Mon Jan 21 20:29:27 2019 +0000
description:
Fix wrong scoping of {U,}LLONG_MAX. Final case, I think.
PR 53298 from Roberto E. Vargas Caballero.
diffstat:
sys/sys/common_limits.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r bbe29696bd11 -r 9cd52fadd6aa sys/sys/common_limits.h
--- a/sys/sys/common_limits.h Mon Jan 21 20:28:17 2019 +0000
+++ b/sys/sys/common_limits.h Mon Jan 21 20:29:27 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: common_limits.h,v 1.2 2014/08/19 15:46:46 matt Exp $ */
+/* $NetBSD: common_limits.h,v 1.3 2019/01/21 20:29:27 dholland Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -50,10 +50,6 @@
#define LONG_MAX __LONG_MAX__ /* max value for a long */
#define ULONG_MAX (2UL*LONG_MAX+1UL) /* max unsigned long */
-#if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || \
- defined(_NETBSD_SOURCE)
-#define SSIZE_MAX LONG_MAX /* max value for a ssize_t */
-
#if defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L || \
defined(_NETBSD_SOURCE)
#define LLONG_MIN (-__LONG_LONG_MAX__-1LL) /* min signed long long */
@@ -61,6 +57,10 @@
#define ULLONG_MAX (2ULL*LLONG_MAX+1ULL) /* max unsigned long long */
#endif
+#if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || \
+ defined(_NETBSD_SOURCE)
+#define SSIZE_MAX LONG_MAX /* max value for a ssize_t */
+
#if defined(_NETBSD_SOURCE)
#define SSIZE_MIN LONG_MIN /* min value for a ssize_t */
#define SIZE_T_MAX ULONG_MAX /* max value for a size_t */
Home |
Main Index |
Thread Index |
Old Index