scws
scws copied to clipboard
Patches for _xdb_read_data and xdb_open
- Add some protections in _xdb_read_data
- In xdb_open, add O_BINARY flag for cygwin/windows
I think we can use following code:
#ifndef O_BINARY
#define O_BINARY 0
#endif
Ok, I will add this and remove the "#ifdef WIN32" around open()
@hightman Please review and hope we can merge this PR soon.