Fix for missing WINAPI_FAMILY_PARTITION
authorErik de Castro Lopo <erikd@mega-nerd.com>
Sat, 10 Feb 2018 02:37:52 +0000 (13:37 +1100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sat, 10 Feb 2018 02:37:55 +0000 (13:37 +1100)
This is macro identifier is not defined, define it to `0`.

include/share/compat.h
src/libFLAC/windows_unicode_filenames.c

index b872762..491b5cb 100644 (file)
 #define flac_fstat fstat
 #endif
 
+#ifndef WINAPI_FAMILY_PARTITION
+#define WINAPI_FAMILY_PARTITION(x) 0
+#endif
+
 #ifdef ANDROID
 #include <limits.h>
 #endif
index 3c91668..cb60c60 100644 (file)
@@ -34,6 +34,7 @@
 #endif
 
 #include <io.h>
+#include "share/compat.h"
 #include "share/windows_unicode_filenames.h"
 
 /* convert UTF-8 back to WCHAR. Caller is responsible for freeing memory */