From 6f05777b8ee6d597c6f689d1bdb014aefc04478f Mon Sep 17 00:00:00 2001 From: bnnm Date: Fri, 10 Nov 2017 21:01:29 +0100 Subject: [PATCH] Add compiler flag to enable Winamp unicode MSVC seems to compile with the UNICODE Windows flag enabled, unlike GCC, causing some problems when Winamp's unicode is enabled, so until they are fixed it can be enabled conditionally to build with GCC --- winamp/in_vgmstream.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/winamp/in_vgmstream.c b/winamp/in_vgmstream.c index 87b4a72b..5d2afec1 100644 --- a/winamp/in_vgmstream.c +++ b/winamp/in_vgmstream.c @@ -5,8 +5,9 @@ /* Normally Winamp opens unicode files by their DOS 8.3 name. #define this to use wchar_t filenames, * which must be opened with _wfopen in a WINAMP_STREAMFILE (needed for dual files like .pos). * Only for Winamp paths, other parts would need #define UNICODE for Windows. */ -//#define UNICODE_INPUT_PLUGIN - +#ifdef VGM_WINAMP_UNICODE +#define UNICODE_INPUT_PLUGIN +#endif #ifdef _MSC_VER #define _CRT_SECURE_NO_DEPRECATE