From ada6ece737c05141fc137fdcec1905ce19b679ce Mon Sep 17 00:00:00 2001 From: Carlo Bramini <30959007+carlo-bramini@users.noreply.github.com> Date: Wed, 6 Nov 2024 14:28:33 +0100 Subject: [PATCH] Windows: Fix unicode support with libsndfile See issue #1422 for details. --- src/utils/fluid_sys.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/utils/fluid_sys.h b/src/utils/fluid_sys.h index cefff4a0a..0672baefd 100644 --- a/src/utils/fluid_sys.h +++ b/src/utils/fluid_sys.h @@ -156,6 +156,12 @@ typedef gintptr intptr_t; #pragma warning(disable : 4996) #endif +/* + * Required by Windows-specific sf_wchar_open() from + * libsndfile that takes a UTF16_BE encoded filename. + */ +#define ENABLE_SNDFILE_WINDOWS_PROTOTYPES 1 + #endif /* Darwin special defines (taken from config_macosx.h) */