summaryrefslogtreecommitdiff
path: root/sys/arch/m68k/include/limits.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/m68k/include/limits.h')
-rw-r--r--sys/arch/m68k/include/limits.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/arch/m68k/include/limits.h b/sys/arch/m68k/include/limits.h
index e269db30f40..21c555ff2b6 100644
--- a/sys/arch/m68k/include/limits.h
+++ b/sys/arch/m68k/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.7 2003/06/02 23:27:48 millert Exp $ */
+/* $OpenBSD: limits.h,v 1.8 2005/12/14 21:46:31 millert Exp $ */
/* $NetBSD: limits.h,v 1.9 1994/10/26 07:50:48 cgd Exp $ */
/*
@@ -34,17 +34,19 @@
#define MB_LEN_MAX 1 /* no multibyte characters */
-#if !defined(_ANSI_SOURCE)
+#include <sys/cdefs.h>
+
+#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 */