--- libgig/trunk/src/RIFF.h 2005/11/02 19:26:15 797 +++ libgig/trunk/src/RIFF.h 2005/11/03 23:49:11 798 @@ -78,8 +78,9 @@ /** Whether file stream is open in read or in read/write mode. */ typedef enum { - stream_mode_read, - stream_mode_read_write + stream_mode_read = 0, + stream_mode_read_write = 1, + stream_mode_closed = 2 } stream_mode_t; /** Current state of the file stream. */ @@ -229,7 +230,7 @@ /** Parses arbitrary RIFF files and provides together with it's base classes convenient methods to walk through the RIFF tree. */ class File : public List { public: - File(); + File(uint32_t FileType); File(const String& path); stream_mode_t GetMode(); bool SetMode(stream_mode_t NewMode); @@ -257,6 +258,11 @@ unsigned long GetFileSize(); void ResizeFile(unsigned long ulNewSize); + #if POSIX + unsigned long __GetFileSize(int hFile); + #else + unsigned long __GetFileSize(FILE* hFile); + #endif }; /** Will be thrown whenever an error occurs while parsing a RIFF file. */