mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 23:02:01 +00:00
Fix compiling opusfile on mingw32
This commit is contained in:
parent
7987b71a9d
commit
5b5f7f5c0a
1 changed files with 6 additions and 2 deletions
|
@ -54,7 +54,9 @@ static int op_fread(void *_stream,unsigned char *_ptr,int _buf_size){
|
||||||
}
|
}
|
||||||
|
|
||||||
static int op_fseek(void *_stream,opus_int64 _offset,int _whence){
|
static int op_fseek(void *_stream,opus_int64 _offset,int _whence){
|
||||||
#if defined(_MSC_VER) || defined(_WIN32)
|
#if defined(__MINGW32__)
|
||||||
|
return fseeko64((FILE *)_stream,_offset,_whence);
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
return _fseeki64((FILE *)_stream,_offset,_whence);
|
return _fseeki64((FILE *)_stream,_offset,_whence);
|
||||||
#else
|
#else
|
||||||
return fseeko((FILE *)_stream,(off_t)_offset,_whence);
|
return fseeko((FILE *)_stream,(off_t)_offset,_whence);
|
||||||
|
@ -62,7 +64,9 @@ static int op_fseek(void *_stream,opus_int64 _offset,int _whence){
|
||||||
}
|
}
|
||||||
|
|
||||||
static opus_int64 op_ftell(void *_stream){
|
static opus_int64 op_ftell(void *_stream){
|
||||||
#if defined(_MSC_VER) || defined(_WIN32)
|
#if defined(__MINGW32__)
|
||||||
|
return ftello64((FILE *)_stream);
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
return _ftelli64((FILE *)_stream);
|
return _ftelli64((FILE *)_stream);
|
||||||
#else
|
#else
|
||||||
return ftello((FILE *)_stream);
|
return ftello((FILE *)_stream);
|
||||||
|
|
Loading…
Reference in a new issue