10 #ifndef LIBOPENMPT_STREAM_CALLBACKS_FILE_MINGW_H
11 #define LIBOPENMPT_STREAM_CALLBACKS_FILE_MINGW_H
34 retval = fread( dst, 1, bytes, f );
62 if ( (_off64_t)offset != offset ) {
65 return fseeko64( f, (_off64_t)offset, fwhence ) ? -1 : 0;
76 result = ftello64( f );
77 if ( (int64_t)result != result ) {
80 retval = (int64_t)result;
#define OPENMPT_STREAM_SEEK_CUR
Definition: libopenmpt.h:255
#define OPENMPT_STREAM_SEEK_SET
Definition: libopenmpt.h:253
openmpt_stream_tell_func tell
Tell callback.
Definition: libopenmpt.h:320
static int64_t openmpt_stream_file_mingw_tell_func(void *stream)
Definition: libopenmpt_stream_callbacks_file_mingw.h:68
#define OPENMPT_STREAM_SEEK_END
Definition: libopenmpt.h:257
static openmpt_stream_callbacks openmpt_stream_get_file_mingw_callbacks(void)
Provide openmpt_stream_callbacks for standard C FILE objects.
Definition: libopenmpt_stream_callbacks_file_mingw.h:98
Stream callbacks.
Definition: libopenmpt.h:300
static int openmpt_stream_file_mingw_seek_func(void *stream, int64_t offset, int whence)
Definition: libopenmpt_stream_callbacks_file_mingw.h:41
openmpt_stream_read_func read
Read callback.
Definition: libopenmpt.h:306
static size_t openmpt_stream_file_mingw_read_func(void *stream, void *dst, size_t bytes)
Definition: libopenmpt_stream_callbacks_file_mingw.h:27
openmpt_stream_seek_func seek
Seek callback.
Definition: libopenmpt.h:313