diff options
author | sezero <sezero@users.sourceforge.net> | 2019-10-08 15:10:20 +0300 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2019-10-10 18:30:39 +1100 |
commit | b917d456d23c3268cc6f466d720605b713d7b9ff (patch) | |
tree | 9f905cab65c0e6b5f7efaccb51cb0640eb1d3708 /include | |
parent | 19a0e99ac3ac5f1fc24d66612668a277ceba8195 (diff) | |
download | flac-b917d456d23c3268cc6f466d720605b713d7b9ff.tar.gz |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/FLAC++/export.h | 2 | ||||
-rw-r--r-- | include/FLAC/export.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/FLAC++/export.h b/include/FLAC++/export.h index 16453621..6776b29c 100644 --- a/include/FLAC++/export.h +++ b/include/FLAC++/export.h @@ -59,7 +59,7 @@ #if defined(FLAC__NO_DLL) #define FLACPP_API -#elif defined(_MSC_VER) +#elif defined(_WIN32) #ifdef FLACPP_API_EXPORTS #define FLACPP_API __declspec(dllexport) #else diff --git a/include/FLAC/export.h b/include/FLAC/export.h index d52f0bbb..628fe5fc 100644 --- a/include/FLAC/export.h +++ b/include/FLAC/export.h @@ -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 |