// Created: 14.07.99
// RCS-ID: $Id$
// Copyright: (c) 1998 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
-// Licence: wxWindows license
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// ============================================================================
// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "ffile.h"
#endif
size_t wxFFile::Tell() const
{
+ wxCHECK_MSG( IsOpened(), (size_t)-1,
+ _T("wxFFile::Tell(): file is closed!") );
+
long rc = ftell(m_fp);
if ( rc == -1 )
{
size_t wxFFile::Length() const
{
+ wxCHECK_MSG( IsOpened(), (size_t)-1,
+ _T("wxFFile::Length(): file is closed!") );
+
wxFFile& self = *(wxFFile *)this; // const_cast
size_t posOld = Tell();