make dllexport work with compilers other than MSVC

the issue is, flac and metaflac exes rely on flac_internal_???_utf8()
procedures from windows_unicode_filenames.c and there is no easy way
to exclude them from exports without breaking things. So export them
explicitly (they are exported anyway w/o this patch), but add a FIXME
note about the kludge in windows_unicode_filenames.c.
This commit is contained in:
sezero
2019-10-08 15:10:20 +03:00
committed by Erik de Castro Lopo
parent 19a0e99ac3
commit b917d456d2
4 changed files with 29 additions and 10 deletions

View File

@@ -59,7 +59,7 @@
#if defined(FLAC__NO_DLL)
#define FLAC_API
#elif defined(_MSC_VER)
#elif defined(_WIN32)
#ifdef FLAC_API_EXPORTS
#define FLAC_API __declspec(dllexport)
#else