diff options
author | obrien <obrien@FreeBSD.org> | 2002-07-09 05:13:30 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-07-09 05:13:30 +0000 |
commit | 76a90f7d49e9878d7c7aa0768c0301a1225d05a9 (patch) | |
tree | acf420f0bef7948cce43fcfad7ad487a88949648 /include/stdlib.h | |
parent | 40751d75aa5f2097e4eae1730f04477e85089897 (diff) | |
download | FreeBSD-src-76a90f7d49e9878d7c7aa0768c0301a1225d05a9.zip FreeBSD-src-76a90f7d49e9878d7c7aa0768c0301a1225d05a9.tar.gz |
Don't define wchar_t if we are a C++ compiler.
PR: 31864, 40084
Diffstat (limited to 'include/stdlib.h')
-rw-r--r-- | include/stdlib.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index d41ccc8..f22f1e1 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -53,10 +53,12 @@ typedef _BSD_SIZE_T_ size_t; #undef _BSD_SIZE_T_ #endif +#ifndef __cplusplus #ifdef _BSD_WCHAR_T_ typedef _BSD_WCHAR_T_ wchar_t; #undef _BSD_WCHAR_T_ #endif +#endif typedef struct { int quot; /* quotient */ |