btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / bin / makeudfimage / FileStream.cpp
blob4a1521e42cc239cc009486d0f24d7dcaff6ce8f8
1 //----------------------------------------------------------------------
2 // This software is part of the OpenBeOS distribution and is covered
3 // by the MIT License.
4 //
5 // Copyright (c) 2003 Tyler Dauwalder, tyler@dauwalder.net
6 //----------------------------------------------------------------------
8 /*! \file FileStream.cpp
9 */
11 #include "FileStream.h"
13 #include <stdlib.h>
14 #include <string.h>
16 FileStream::FileStream(const char *path, uint32 open_mode)
17 : PositionIOStream(fFile)
18 , fFile(path, open_mode)
22 status_t
23 FileStream::InitCheck() const
25 status_t error = PositionIOStream::InitCheck();
26 if (!error)
27 error = fFile.InitCheck();
28 return error;