aboutsummaryrefslogtreecommitdiffstats
path: root/include/inttypes.h
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2002-07-09 05:13:30 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2002-07-09 05:13:30 +0000
commit6087d2441e53d0dce1541ce9554e45c0167167d7 (patch)
treeacf420f0bef7948cce43fcfad7ad487a88949648 /include/inttypes.h
parent03fd39aa3db056d44cff63fd6d3adbcfe4334a19 (diff)
downloadsrc-6087d2441e53d0dce1541ce9554e45c0167167d7.tar.gz
src-6087d2441e53d0dce1541ce9554e45c0167167d7.zip
Don't define wchar_t if we are a C++ compiler.
PR: 31864, 40084
Notes
Notes: svn path=/head/; revision=99640
Diffstat (limited to 'include/inttypes.h')
-rw-r--r--include/inttypes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/inttypes.h b/include/inttypes.h
index 6efcd817f72a..cd59bedb90f2 100644
--- a/include/inttypes.h
+++ b/include/inttypes.h
@@ -32,10 +32,12 @@
#include <machine/_inttypes.h>
#include <sys/stdint.h>
+#ifndef __cplusplus
#ifdef _BSD_WCHAR_T_
typedef _BSD_WCHAR_T_ wchar_t;
#undef _BSD_WCHAR_T_
#endif
+#endif
typedef struct {
intmax_t quot; /* Quotient. */