mirror of https://github.com/ecmwf/eccodes.git
Windows build: Fix AppVeyor build
This commit is contained in:
parent
0dd6764d7b
commit
a214a35be7
|
@ -55,6 +55,11 @@ extern "C" {
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef ECCODES_ON_WINDOWS
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
#define _CRT_NONSTDC_NO_DEPRECATE
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
@ -96,8 +101,6 @@ extern "C" {
|
|||
#define mkdir(dirname, mode) _mkdir(dirname)
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#define _CRT_SECURE_NO_WARNINGS
|
||||
#define _CRT_NONSTDC_NO_DEPRECATE
|
||||
#define access(path, mode) _access(path, mode)
|
||||
#define chmod(path, mode) _chmod(path, mode)
|
||||
#define strdup(str) _strdup(str)
|
||||
|
|
Loading…
Reference in New Issue