Module Name:    src
Committed By:   martin
Date:           Sat Apr  1 16:43:17 UTC 2023

Modified Files:
        src/sys/sys [netbsd-8]: common_limits.h

Log Message:
Pull up following revision(s) (requested by riastradh in ticket #1819):

        sys/sys/common_limits.h: revision 1.3

Fix wrong scoping of {U,}LLONG_MAX. Final case, I think.
PR 53298 from Roberto E. Vargas Caballero.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.2.12.1 src/sys/sys/common_limits.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/sys/common_limits.h
diff -u src/sys/sys/common_limits.h:1.2 src/sys/sys/common_limits.h:1.2.12.1
--- src/sys/sys/common_limits.h:1.2	Tue Aug 19 15:46:46 2014
+++ src/sys/sys/common_limits.h	Sat Apr  1 16:43:17 2023
@@ -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.2.12.1 2023/04/01 16:43:17 martin 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 */

Reply via email to