mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 09:59:54 +00:00
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:
parent
ca25b0a9c2
commit
932aeadf12
@ -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) ;
|
||||
|
Loading…
Reference in New Issue
Block a user