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:
parent
1033a1636d
commit
f2a5fd303b
@ -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()
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user