diff --git a/include/share/compat.h b/include/share/compat.h index b8727621..491b5cbd 100644 --- a/include/share/compat.h +++ b/include/share/compat.h @@ -175,6 +175,10 @@ #define flac_fstat fstat #endif +#ifndef WINAPI_FAMILY_PARTITION +#define WINAPI_FAMILY_PARTITION(x) 0 +#endif + #ifdef ANDROID #include #endif diff --git a/src/libFLAC/windows_unicode_filenames.c b/src/libFLAC/windows_unicode_filenames.c index 3c916681..cb60c60a 100644 --- a/src/libFLAC/windows_unicode_filenames.c +++ b/src/libFLAC/windows_unicode_filenames.c @@ -34,6 +34,7 @@ #endif #include +#include "share/compat.h" #include "share/windows_unicode_filenames.h" /* convert UTF-8 back to WCHAR. Caller is responsible for freeing memory */