summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorkleink <kleink@NetBSD.org>2005-04-18 19:47:51 +0000
committerkleink <kleink@NetBSD.org>2005-04-18 19:47:51 +0000
commit9020a25f08ed24ff6226ef39edfbf6e080cf70da (patch)
tree6ecb0f7ca9d349681c1c20aafca9df8aca72b2d9 /include
parent4e3cae58ff3c6a086fbc67b1a8785dc6df51d663 (diff)
Instead of pulling in all of <wchar.h>, just define wchar_t here.
Addresses PR lib/29987.
Diffstat (limited to 'include')
-rw-r--r--include/inttypes.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/include/inttypes.h b/include/inttypes.h
index 3461b7b21af..4ee92cd4ef6 100644
--- a/include/inttypes.h
+++ b/include/inttypes.h
@@ -1,4 +1,4 @@
-/* $NetBSD: inttypes.h,v 1.3 2005/02/03 04:39:32 perry Exp $ */
+/* $NetBSD: inttypes.h,v 1.4 2005/04/18 19:47:51 kleink Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -41,7 +41,12 @@
#include <sys/cdefs.h>
#include <sys/inttypes.h>
-#include <wchar.h>
+#include <machine/ansi.h>
+
+#ifdef _BSD_WCHAR_T_
+typedef _BSD_WCHAR_T_ wchar_t;
+#undef _BSD_WCHAR_T_
+#endif
__BEGIN_DECLS
intmax_t strtoimax(const char * __restrict,