inteface changing
This commit is contained in:
parent
684ea0ad26
commit
732d8c33d1
@ -77,7 +77,7 @@ class StreamAdapter : public IStream {
|
||||
*/
|
||||
inline IStream *CreateStream(const char *uri, const char *mode) {
|
||||
#if RABIT_USE_WORMHOLE
|
||||
return new StreamAdapter<dmlc::ISeekStream>(dmlc::ISeekStream::Create(uri, mode));
|
||||
return new StreamAdapter<dmlc::IStream>(dmlc::IStream::Create(uri, mode));
|
||||
#else
|
||||
using namespace std;
|
||||
if (!strncmp(uri, "file://", 7)) {
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
#endif
|
||||
|
||||
#if RABIT_USE_WORMHOLE
|
||||
#include <io.h>
|
||||
#include <dmlc/io.h>
|
||||
#endif
|
||||
/*! \brief io interface */
|
||||
namespace rabit {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user