Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tools/compat If SIZE_MAX is not defined, but SIZE_T_MAX is d...



details:   https://anonhg.NetBSD.org/src/rev/5da410fbc1d1
branches:  trunk
changeset: 551028:5da410fbc1d1
user:      uwe <uwe%NetBSD.org@localhost>
date:      Wed Aug 27 18:33:26 2003 +0000

description:
If SIZE_MAX is not defined, but SIZE_T_MAX is defined (e.g. FreeBSD),
define SIZE_MAX as SIZE_T_MAX.

diffstat:

 tools/compat/compat_defs.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r faa6d2586e6c -r 5da410fbc1d1 tools/compat/compat_defs.h
--- a/tools/compat/compat_defs.h        Wed Aug 27 17:49:48 2003 +0000
+++ b/tools/compat/compat_defs.h        Wed Aug 27 18:33:26 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: compat_defs.h,v 1.29 2003/07/27 07:56:37 lukem Exp $   */
+/*     $NetBSD: compat_defs.h,v 1.30 2003/08/27 18:33:26 uwe Exp $     */
 
 #ifndef        __NETBSD_COMPAT_DEFS_H__
 #define        __NETBSD_COMPAT_DEFS_H__
@@ -406,6 +406,10 @@
 
 /* <stdint.h> */
 
+#if !defined(SIZE_MAX) && defined(SIZE_T_MAX)
+#define SIZE_MAX SIZE_T_MAX
+#endif
+
 #ifndef UINT32_MAX
 #define UINT32_MAX 0xffffffffU
 #endif



Home | Main Index | Thread Index | Old Index