Module Name: src Committed By: dholland Date: Mon Jan 21 20:22:48 UTC 2019
Modified Files: src/sys/arch/amd64/include: limits.h Log Message: Fix wrong scoping of {U,}LLONG_MAX. PR 53298 from Roberto E. Vargas Caballero. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 src/sys/arch/amd64/include/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/arch/amd64/include/limits.h diff -u src/sys/arch/amd64/include/limits.h:1.14 src/sys/arch/amd64/include/limits.h:1.15 --- src/sys/arch/amd64/include/limits.h:1.14 Mon Apr 21 10:53:47 2014 +++ src/sys/arch/amd64/include/limits.h Mon Jan 21 20:22:48 2019 @@ -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 */