The following conditionals are essential on Windows, however since _MSC_VER is used instead of _WIN32 this will break on gcc within mingw64. It would be good if these could be fixed. By the way, I saw you use Appveyor but don't run any tests, just compile it. And you already make use of MSYS's cmake within Appveyor. Why not extend it for building under mingw and running tests there?
|
#ifdef _MSC_VER |
|
tempdir = getenv("TEMP"); |
|
#else |
|
tempdir = "/tmp"; |
|
#endif |
|
#ifdef _MSC_VER |
|
file->fp = fopen(file->path, "rb"); |
|
#else |
|
file->fp = fopen(file->path, "r"); |
|
#endif |
|
#ifdef _MSC_VER |
|
stream = NCfopen(filename,"rb"); |
|
#else |
|
stream = NCfopen(filename,"r"); |
|
#endif |
|
#ifdef _MSC_VER |
|
fd=NCopen3(tmp,O_RDWR|O_BINARY|O_CREAT, _S_IREAD|_S_IWRITE); |
|
#else |
|
fd=NCopen3(tmp,O_RDWR|O_CREAT|O_EXCL, S_IRWXU); |
|
#endif |
The following conditionals are essential on Windows, however since
_MSC_VERis used instead of_WIN32this will break on gcc within mingw64. It would be good if these could be fixed. By the way, I saw you use Appveyor but don't run any tests, just compile it. And you already make use of MSYS's cmake within Appveyor. Why not extend it for building under mingw and running tests there?netcdf-c/libdispatch/ddispatch.c
Lines 80 to 84 in c844e5b
netcdf-c/libdispatch/dfile.c
Lines 2522 to 2526 in c844e5b
netcdf-c/libdispatch/dutil.c
Lines 171 to 175 in c844e5b
netcdf-c/libdispatch/dutil.c
Lines 240 to 244 in c844e5b