mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 10:32:56 +01:00
trunk/branch integration: VxWorks & Wince
This commit is contained in:
@@ -35,7 +35,11 @@
|
||||
|
||||
|
||||
#include "Poco/DirectoryIterator_UNIX.h"
|
||||
#if defined(POCO_VXWORKS)
|
||||
#include "Poco/File_VX.h"
|
||||
#else
|
||||
#include "Poco/File_UNIX.h"
|
||||
#endif
|
||||
#include "Poco/Path.h"
|
||||
|
||||
|
||||
@@ -47,7 +51,11 @@ DirectoryIteratorImpl::DirectoryIteratorImpl(const std::string& path): _pDir(0),
|
||||
Path p(path);
|
||||
p.makeFile();
|
||||
|
||||
#if defined(POCO_VXWORKS)
|
||||
_pDir = opendir(const_cast<char*>(p.toString().c_str()));
|
||||
#else
|
||||
_pDir = opendir(p.toString().c_str());
|
||||
#endif
|
||||
if (!_pDir) File::handleLastError(path);
|
||||
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user