// Created : Wed Mar 10 11:23:25 2010
// Author : Edward AGAPOV (eap)
//
+
#include "SMESH_File.hxx"
-#include "utilities.h"
#include <fcntl.h>
#include <sys/stat.h>
bool ok = ( _file != INVALID_HANDLE_VALUE );
#else
_file = ::open(_name.data(), O_RDONLY );
- bool ok = ( _file > 0 );
+ bool ok = ( _file >= 0 );
#endif
if ( ok )
{
if ( _size >= 0 ) return _size; // size of an open file
boost::system::error_code err;
- uintmax_t size = boofs::file_size( _name, err );
+ boost::uintmax_t size = boofs::file_size( _name, err );
_error = err.message();
return err ? -1 : (long) size;