summaryrefslogtreecommitdiff
path: root/sys/arch/hppa64/include/limits.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/hppa64/include/limits.h')
-rw-r--r--sys/arch/hppa64/include/limits.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/sys/arch/hppa64/include/limits.h b/sys/arch/hppa64/include/limits.h
index bc4736a98e1..b9e88daa4ae 100644
--- a/sys/arch/hppa64/include/limits.h
+++ b/sys/arch/hppa64/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.1 2005/04/01 10:40:48 mickey Exp $ */
+/* $OpenBSD: limits.h,v 1.2 2005/12/14 21:46:30 millert Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -34,14 +34,17 @@
#ifndef _MACHINE_LIMITS_H_
#define _MACHINE_LIMITS_H_
+#include <sys/cdefs.h>
+
#define MB_LEN_MAX 32 /* Allow 31 bit UTF2 */
-#if !defined(_ANSI_SOURCE)
-#define SIZE_MAX ULONG_MAX /* max value for a size_t */
-#define SSIZE_MAX LONG_MAX /* max value for a ssize_t */
+#if __POSIX_VISIBLE || __XPG_VISIBLE
+#define SIZE_MAX UINT_MAX /* max value for a size_t */
+#define SSIZE_MAX INT_MAX /* max value for a ssize_t */
+#endif
-#if !defined(_POSIX_SOURCE)
-#define SIZE_T_MAX ULONG_MAX /* max value for a size_t */
+#if __BSD_VISIBLE
+#define SIZE_T_MAX UINT_MAX /* max value for a size_t (historic) */
/* GCC requires that quad constants be written as expressions. */
#define UQUAD_MAX ((u_quad_t)0-1) /* max value for a uquad_t */
@@ -49,7 +52,6 @@
#define QUAD_MAX ((quad_t)(UQUAD_MAX >> 1))
#define QUAD_MIN (-QUAD_MAX-1) /* min value for a quad_t */
-#endif /* !_POSIX_SOURCE */
-#endif /* !_ANSI_SOURCE */
+#endif /* __BSD_VISIBLE */
#endif /* _MACHINE_LIMITS_H_ */