Skip to content

Commit 6563cea

Browse files
committed
C bindings: Include missing wchar header in tag_c.h (#1273)
In C++, wchar_t is a built-in fundamental type, but in C, it is not. Compilation with MinGW will fail without a header included which defines wchar_t (wchar.h or stddef.h). The other compilers used in our CI (gcc on Ubuntu, clang on macOS and MSVC on Windows) seem to know wchar_t without an include.
1 parent c57431e commit 6563cea

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

bindings/c/tag_c.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ extern "C" {
4343
#define TAGLIB_C_EXPORT
4444
#endif
4545

46+
#include <wchar.h>
4647
#ifdef _MSC_VER
4748
/* minwindef.h contains typedef int BOOL */
4849
#include <windows.h>

0 commit comments

Comments
 (0)