sync with OpenBSD -current

This commit is contained in:
purplerain 2024-02-10 13:29:41 +00:00
parent 550dd57439
commit 1216bb5537
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
10 changed files with 42 additions and 39 deletions

View file

@ -20,6 +20,9 @@
#if defined(_WIN32) && !defined(_CRT_SECURE_NO_WARNINGS)
# define _CRT_SECURE_NO_WARNINGS
#endif
#if defined(_WIN32) && !defined(_CRT_NONSTDC_NO_DEPRECATE)
# define _CRT_NONSTDC_NO_DEPRECATE
#endif
#include <stdio.h>
#include "zlib.h"
@ -40,7 +43,6 @@
#if defined(__TURBOC__) || defined(_MSC_VER) || defined(_WIN32)
# include <io.h>
# include <share.h>
# include <sys/stat.h>
#endif
@ -48,13 +50,6 @@
# define WIDECHAR
#endif
#if defined(_WIN32) || defined(WINAPI_FAMILY)
# define open _open
# define read _read
# define write _write
# define close _close
#endif
#ifdef NO_DEFLATE /* for compatibility with old definition */
# define NO_GZCOMPRESS
#endif