summaryrefslogtreecommitdiff
path: root/sys/arch/m88k/include/limits.h
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2005-12-14 21:46:32 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2005-12-14 21:46:32 +0000
commit3fce9befb1d4f65739adc427683f5a6357ee102f (patch)
treebda10871810ec2e3c47c06cfa6e07b88df5efe02 /sys/arch/m88k/include/limits.h
parent6ffc06fbc8f7e1d2c6134ab0d4563b6a189b983c (diff)
convert _FOO_SOURCE -> __FOO_VISIBLE in machine. OK deraadt@
Diffstat (limited to 'sys/arch/m88k/include/limits.h')
-rw-r--r--sys/arch/m88k/include/limits.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/arch/m88k/include/limits.h b/sys/arch/m88k/include/limits.h
index df91cc22906..d2eaa31dfaf 100644
--- a/sys/arch/m88k/include/limits.h
+++ b/sys/arch/m88k/include/limits.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: limits.h,v 1.1 2004/04/26 12:34:05 miod Exp $ */
+/* $OpenBSD: limits.h,v 1.2 2005/12/14 21:46:31 millert Exp $ */
/*
* Copyright (c) 1988, 1993
* The Regents of the University of California. All rights reserved.
@@ -33,21 +33,23 @@
#ifndef _MACHINE_LIMITS_H_
#define _MACHINE_LIMITS_H_
+#include <sys/cdefs.h>
+
#define MB_LEN_MAX 6 /* Allow 31 bit UTF2 */
-#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)
-#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) */
/* GCC requires that quad constants be written as expressions. */
#define UQUAD_MAX ((u_quad_t)0-1) /* max value for a uquad_t */
/* max value for a quad_t */
#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_ */