Declare wxInvalidSize also in wx/dir.h

wxInvalidSize is a documented return value for wxDir::GetTotalSize(),
yet it was not available by including just wx/dir.h as it was declared
in wx/filename.h only.

Fix this by declaring it in wx/dir.h too.

Closes https://github.com/wxWidgets/wxWidgets/pull/609
This commit is contained in:
Lauri Nurmi 2017-11-21 14:49:21 +02:00 committed by VZ
parent 1033a1636d
commit f2a5fd303b
2 changed files with 10 additions and 0 deletions

View File

@ -45,6 +45,11 @@ enum wxDirTraverseResult
wxDIR_CONTINUE // continue into this directory
};
#if wxUSE_LONGLONG
// error code of wxDir::GetTotalSize()
extern WXDLLIMPEXP_DATA_BASE(const wxULongLong) wxInvalidSize;
#endif // wxUSE_LONGLONG
// ----------------------------------------------------------------------------
// wxDirTraverser: helper class for wxDir::Traverse()
// ----------------------------------------------------------------------------

View File

@ -15,6 +15,11 @@ enum wxDirTraverseResult
wxDIR_CONTINUE ///< Continue into this directory.
};
/**
The return value of wxDir::GetTotalSize() in case of error.
*/
wxULongLong wxInvalidSize;
/**
@class wxDirTraverser