summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2013-02-17 18:56:31 -0600
committerTim Angus <tim@ngus.net>2013-03-19 16:41:13 +0000
commit0162332be7512f114edeb497e37ed1c0c63388f7 (patch)
tree394fe89c7e4926f6caf311c6b2a46abbcadfc0d2
parentfee291df206917c43fe3284aaec3eb902d336304 (diff)
Fix compiling opus using mingw
-rw-r--r--src/opusfile-0.2/src/stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opusfile-0.2/src/stream.c b/src/opusfile-0.2/src/stream.c
index 25a96f93..5482ca56 100644
--- a/src/opusfile-0.2/src/stream.c
+++ b/src/opusfile-0.2/src/stream.c
@@ -54,7 +54,7 @@ static int op_fread(void *_stream,unsigned char *_ptr,int _buf_size){
}
static int op_fseek(void *_stream,opus_int64 _offset,int _whence){
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) || defined(_WIN32)
return _fseeki64((FILE *)_stream,_offset,_whence);
#else
return fseeko((FILE *)_stream,(off_t)_offset,_whence);
@@ -62,7 +62,7 @@ static int op_fseek(void *_stream,opus_int64 _offset,int _whence){
}
static opus_int64 op_ftell(void *_stream){
-#if defined(_MSC_VER)
+#if defined(_MSC_VER) || defined(_WIN32)
return _ftelli64((FILE *)_stream);
#else
return ftello((FILE *)_stream);