summaryrefslogtreecommitdiff
path: root/sys/arch/arm/include/limits.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/arm/include/limits.h')
-rw-r--r--sys/arch/arm/include/limits.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/arch/arm/include/limits.h b/sys/arch/arm/include/limits.h
index 44c99876b4f..3479577b598 100644
--- a/sys/arch/arm/include/limits.h
+++ b/sys/arch/arm/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.1 2004/02/01 05:09:49 drahn Exp $ */
+/* $OpenBSD: limits.h,v 1.2 2005/12/14 21:46:30 millert Exp $ */
/* $NetBSD: limits.h,v 1.4 2003/04/28 23:16:18 bjh21 Exp $ */
/*
@@ -35,20 +35,22 @@
#ifndef _ARM32_LIMITS_H_
#define _ARM32_LIMITS_H_
+#include <sys/cdefs.h>
+
#define MB_LEN_MAX 1 /* no multibyte characters */
-#if !defined(_ANSI_SOURCE)
+#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) && !defined(_XOPEN_SOURCE)
-#define SIZE_T_MAX UINT_MAX /* max value for a size_t */
+#if __BSD_VISIBLE
+#define SIZE_T_MAX UINT_MAX /* max value for a size_t (historic) */
#define UQUAD_MAX 0xffffffffffffffffULL /* max unsigned quad */
#define QUAD_MAX 0x7fffffffffffffffLL /* max signed quad */
#define QUAD_MIN (-0x7fffffffffffffffLL-1) /* min signed quad */
-#endif /* !_POSIX_SOURCE && !_XOPEN_SOURCE */
-#endif /* !_ANSI_SOURCE */
+#endif /* __BSD_VISIBLE */
#endif /* _ARM32_LIMITS_H_ */