提交 e82969ee 编写于 作者: D dongdaxiang

remove getdelim in windows

test=develop
上级 8359b519
...@@ -79,6 +79,7 @@ inline int str_to_float(const char* str, float* v) { ...@@ -79,6 +79,7 @@ inline int str_to_float(const char* str, float* v) {
// A line buffer is maintained. It // A line buffer is maintained. It
// doesn't need to know the maximum possible length of a line. // doesn't need to know the maximum possible length of a line.
char* LineFileReader::getdelim(FILE* f, char delim) { char* LineFileReader::getdelim(FILE* f, char delim) {
#ifndef __WIN32
int32_t ret = ::getdelim(&_buffer, &_buf_size, delim, f); int32_t ret = ::getdelim(&_buffer, &_buf_size, delim, f);
if (ret >= 0) { if (ret >= 0) {
...@@ -93,6 +94,9 @@ char* LineFileReader::getdelim(FILE* f, char delim) { ...@@ -93,6 +94,9 @@ char* LineFileReader::getdelim(FILE* f, char delim) {
CHECK(feof(f)); CHECK(feof(f));
return NULL; return NULL;
} }
#else
return NULL;
#endif
} }
} // end namespace string } // end namespace string
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册