summaryrefslogtreecommitdiff
path: root/include/stdlib.h
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2009-11-15 22:21:03 +0000
committerchristos <christos@NetBSD.org>2009-11-15 22:21:03 +0000
commitdb576bf3220441f59feb17be0f0a5348c625e5b7 (patch)
treea68ebdbe4633606fc3e02a55825431ff98faf107 /include/stdlib.h
parent643cb1182511177f55256c55d6008cd059e2704d (diff)
Don't define wchar_t for c++; it is native in the language. From Alexander
Nasonov
Diffstat (limited to 'include/stdlib.h')
-rw-r--r--include/stdlib.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index 40e79af7ef0..d9ae3097527 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -1,4 +1,4 @@
-/* $NetBSD: stdlib.h,v 1.89 2009/07/20 17:03:37 joerg Exp $ */
+/* $NetBSD: stdlib.h,v 1.90 2009/11/15 22:21:03 christos Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -48,7 +48,7 @@ typedef _BSD_SIZE_T_ size_t;
#undef _BSD_SIZE_T_
#endif
-#ifdef _BSD_WCHAR_T_
+#if defined(_BSD_WCHAR_T_) && !defined(__cplusplus)
typedef _BSD_WCHAR_T_ wchar_t;
#undef _BSD_WCHAR_T_
#endif