src/file_io.c: Fix compiler warning on MinGW platform

No `WINAPI_PARTITION_SYSTEM` define on MinGW platform.

Related to #584.
This commit is contained in:
evpobr 2020-09-02 10:37:48 +05:00
parent ca25b0a9c2
commit 932aeadf12

View File

@ -599,6 +599,10 @@ psf_fsync (SF_PRIVATE *psf)
#include <windows.h>
#include <io.h>
#ifndef WINAPI_PARTITION_SYSTEM
#define WINAPI_PARTITION_SYSTEM 0
#endif
static int psf_close_handle (HANDLE handle) ;
static HANDLE psf_open_handle (PSF_FILE * pfile) ;
static sf_count_t psf_get_filelen_handle (HANDLE handle) ;