mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-03-01 17:06:03 +08:00
Use binary mode for tst_inmemory in mingw
This commit is contained in:
parent
b654d4ed5b
commit
4657eef36d
@ -168,7 +168,7 @@ readfile(const char* path, NC_memio* memio)
|
||||
char* p = NULL;
|
||||
|
||||
/* Open the file for reading */
|
||||
#ifdef _MSC_VER
|
||||
#ifdef _WIN32
|
||||
f = fopen(path,"rb");
|
||||
#else
|
||||
f = fopen(path,"r");
|
||||
@ -216,7 +216,7 @@ writefile(const char* path, NC_memio* memio)
|
||||
char* p = NULL;
|
||||
|
||||
/* Open the file for writing */
|
||||
#ifdef _MSC_VER
|
||||
#ifdef _WIN32
|
||||
f = fopen(path,"wb");
|
||||
#else
|
||||
f = fopen(path,"w");
|
||||
|
Loading…
Reference in New Issue
Block a user