Windows build: Fix AppVeyor build

This commit is contained in:
Shahram Najm 2022-12-26 15:39:21 +00:00
parent 0dd6764d7b
commit a214a35be7
1 changed files with 5 additions and 2 deletions

View File

@ -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)