hightman / scws

开源免费的简易中文分词系统,PHP分词的上乘之选!
http://www.xunsearch.com/scws/
Other
1.66k stars 348 forks source link

Patches for _xdb_read_data and xdb_open #31

Open bearlin opened 8 years ago

bearlin commented 8 years ago
  1. Add some protections in _xdb_read_data
  2. In xdb_open, add O_BINARY flag for cygwin/windows
hightman commented 8 years ago

I think we can use following code:

#ifndef O_BINARY
#define O_BINARY 0
#endif
bearlin commented 8 years ago

Ok, I will add this and remove the "#ifdef WIN32" around open()

bearlin commented 2 years ago

@hightman Please review and hope we can merge this PR soon.