Don't define wchar_t in C++ as it is a bultin-type there.

This commit is contained in:
Sebastian Bauer 2018-03-30 21:35:06 +02:00
parent a6a9352a00
commit dfc7f310d6
1 changed files with 4 additions and 0 deletions

View File

@ -61,7 +61,11 @@ extern "C" {
typedef int ptrdiff_t;
typedef unsigned int size_t;
/* wchar_t is a built-in type in C++ */
#ifndef __cplusplus
typedef unsigned short wchar_t;
#endif
/****************************************************************************/