Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/amd64/include Fix wrong scoping of {U, }LLONG_MAX.
details: https://anonhg.NetBSD.org/src/rev/8026cf796b74
branches: trunk
changeset: 447697:8026cf796b74
user: dholland <dholland%NetBSD.org@localhost>
date: Mon Jan 21 20:22:48 2019 +0000
description:
Fix wrong scoping of {U,}LLONG_MAX.
PR 53298 from Roberto E. Vargas Caballero.
diffstat:
sys/arch/amd64/include/limits.h | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r ed04c1919505 -r 8026cf796b74 sys/arch/amd64/include/limits.h
--- a/sys/arch/amd64/include/limits.h Mon Jan 21 16:58:47 2019 +0000
+++ b/sys/arch/amd64/include/limits.h Mon Jan 21 20:22:48 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: limits.h,v 1.14 2014/04/21 10:53:47 matt Exp $ */
+/* $NetBSD: limits.h,v 1.15 2019/01/21 20:22:48 dholland Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@@ -56,10 +56,6 @@
#define LONG_MAX 0x7fffffffffffffffL /* max value for a long */
#define LONG_MIN (-0x7fffffffffffffffL-1) /* min value for a 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 ULLONG_MAX 0xffffffffffffffffULL /* max unsigned long long */
@@ -67,6 +63,10 @@
#define LLONG_MIN (-0x7fffffffffffffffLL-1) /* min signed 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