Define ISO C99 (unsigned) long long (min, max) symbols.
VS: ----------------------------------------------------------------------
This commit is contained in:
parent
a9ebf7bb8c
commit
0c7df56c40
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: limits.h,v 1.12 1998/08/06 11:25:04 kleink Exp $ */
|
/* $NetBSD: limits.h,v 1.13 2000/03/07 19:31:50 kleink Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1988, 1993
|
* Copyright (c) 1988, 1993
|
||||||
|
@ -73,6 +73,13 @@
|
||||||
#if !defined(_ANSI_SOURCE)
|
#if !defined(_ANSI_SOURCE)
|
||||||
#define SSIZE_MAX INT_MAX /* max value for a ssize_t */
|
#define SSIZE_MAX INT_MAX /* max value for a ssize_t */
|
||||||
|
|
||||||
|
#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) || \
|
||||||
|
defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L
|
||||||
|
#define ULLONG_MAX 0xffffffffffffffffULL /* max unsigned long long */
|
||||||
|
#define LLONG_MAX 0x7fffffffffffffffLL /* max signed long long */
|
||||||
|
#define LLONG_MIN (-0x7fffffffffffffffLL-1) /* min signed long long */
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)
|
#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)
|
||||||
#define SIZE_T_MAX UINT_MAX /* max value for a size_t */
|
#define SIZE_T_MAX UINT_MAX /* max value for a size_t */
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: limits.h,v 1.9 1998/08/06 11:25:04 kleink Exp $ */
|
/* $NetBSD: limits.h,v 1.10 2000/03/07 19:31:50 kleink Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1988 The Regents of the University of California.
|
* Copyright (c) 1988 The Regents of the University of California.
|
||||||
|
@ -63,6 +63,13 @@
|
||||||
#if !defined(_ANSI_SOURCE)
|
#if !defined(_ANSI_SOURCE)
|
||||||
#define SSIZE_MAX INT_MAX /* max value for a ssize_t */
|
#define SSIZE_MAX INT_MAX /* max value for a ssize_t */
|
||||||
|
|
||||||
|
#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE) || \
|
||||||
|
defined(_ISOC99_SOURCE) || (__STDC_VERSION__ - 0) >= 199901L
|
||||||
|
#define ULLONG_MAX 0xffffffffffffffffULL /* max unsigned long long */
|
||||||
|
#define LLONG_MAX 0x7fffffffffffffffLL /* max signed long long */
|
||||||
|
#define LLONG_MIN (-0x7fffffffffffffffLL-1) /* min signed long long */
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)
|
#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)
|
||||||
#define SIZE_T_MAX UINT_MAX /* max value for a size_t */
|
#define SIZE_T_MAX UINT_MAX /* max value for a size_t */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue