From c4141f6132a87b7bc39a71f6f6173b876809f53e Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo Date: Thu, 11 Feb 2016 17:52:42 +1100 Subject: [PATCH] Another Windows build fix Patch-from: lvqcl --- include/share/windows_unicode_filenames.h | 2 -- src/libFLAC/windows_unicode_filenames.c | 1 - 2 files changed, 3 deletions(-) diff --git a/include/share/windows_unicode_filenames.h b/include/share/windows_unicode_filenames.h index a2f0bc08..7e196bfe 100644 --- a/include/share/windows_unicode_filenames.h +++ b/include/share/windows_unicode_filenames.h @@ -55,11 +55,9 @@ int flac_internal_utime_utf8(const char *filename, struct utimbuf *times); int flac_internal_unlink_utf8(const char *filename); int flac_internal_rename_utf8(const char *oldname, const char *newname); -#ifdef FLAC__COMPAT_USE_WINAPI #include HANDLE WINAPI flac_internal_CreateFile_utf8(const char *lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes, HANDLE hTemplateFile); #define CreateFile_utf8 flac_internal_CreateFile_utf8 -#endif #ifdef __cplusplus } /* extern "C" */ diff --git a/src/libFLAC/windows_unicode_filenames.c b/src/libFLAC/windows_unicode_filenames.c index 6c26420c..ef027535 100644 --- a/src/libFLAC/windows_unicode_filenames.c +++ b/src/libFLAC/windows_unicode_filenames.c @@ -34,7 +34,6 @@ #endif #include -#define FLAC__COMPAT_USE_WINAPI #include "share/windows_unicode_filenames.h" /* convert UTF-8 back to WCHAR. Caller is responsible for freeing memory */