1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-22 23:23:51 +00:00

Windows fixes

This commit is contained in:
athile 2010-08-30 03:09:44 +01:00
parent 6ff6d7556c
commit 4a31f4e0f8
2 changed files with 5 additions and 5 deletions

View file

@ -28,8 +28,8 @@ class SampleSource : public Stream::Stream
// Disabled functions by default. You can still override them in
// subclasses.
void seek(size_t pos) { assert(0); }
size_t tell() const { assert(0); }
size_t size() const { assert(0); }
size_t tell() const { assert(0); return 0; }
size_t size() const { assert(0); return 0; }
};
typedef boost::shared_ptr<SampleSource> SampleSourcePtr;

View file

@ -23,14 +23,14 @@ class AudiereFile : public audiere::RefImplementation<audiere::File>
: inp(_inp) {}
/// Read 'count' bytes, return bytes successfully read
int read(void *buf, int count)
int ADR_CALL read(void *buf, int count)
{ return inp->read(buf,count); }
/// Seek, relative to specified seek mode. Returns true if successful.
bool seek(int pos, audiere::File::SeekMode mode);
bool ADR_CALL seek(int pos, audiere::File::SeekMode mode);
/// Get current position
int tell()
int ADR_CALL tell()
{ assert(inp->hasPosition); return inp->tell(); }
};