Avoid more MSVC-specific C runtime library functions

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/13540)
This commit is contained in:
Tanzinul Islam 2020-12-09 00:45:11 +00:00 committed by Dmitry Belyavskiy
parent 6afb36342d
commit 96d4ec6724
6 changed files with 8 additions and 6 deletions

View File

@ -20,7 +20,7 @@
#include "cmp_mock_srv.h"
/* tweaks needed due to missing unistd.h on Windows */
#ifdef _WIN32
#if defined(_WIN32) && !defined(__BORLANDC__)
# define access _access
#endif
#ifndef F_OK

View File

@ -50,7 +50,7 @@ static int WIN32_rename(const char *from, const char *to);
# include <conio.h>
#endif
#if defined(OPENSSL_SYS_MSDOS) && !defined(_WIN32)
#if defined(OPENSSL_SYS_MSDOS) && !defined(_WIN32) || defined(__BORLANDC__)
# define _kbhit kbhit
#endif

View File

@ -1,5 +1,5 @@
# Auxiliary program source
IF[{- $config{target} =~ /^(?:VC-|mingw)/ -}]
IF[{- $config{target} =~ /^(?:VC-|mingw|BC-)/ -}]
# It's called 'init', but doesn't have much 'init' in it...
$AUXLIBAPPSSRC=win32_init.c
ENDIF

View File

@ -5,7 +5,7 @@
# be useful here.
#
# Auxiliary program source (copied from ../apps/build.info)
IF[{- $config{target} =~ /^(?:VC-|mingw)/ -}]
IF[{- $config{target} =~ /^(?:VC-|mingw|BC-)/ -}]
# It's called 'init', but doesn't have much 'init' in it...
$AUXLIBAPPSSRC=../apps/lib/win32_init.c
ENDIF

View File

@ -16,7 +16,9 @@
#ifdef _WIN32
# include <direct.h>
# define DIRSEP "/\\"
# define chdir _chdir
# ifndef __BORLANDC__
# define chdir _chdir
# endif
# define DIRSEP_PRESERVE 0
#elif !defined(OPENSSL_NO_POSIX_IO)
# include <unistd.h>

View File

@ -19,7 +19,7 @@
#include "platform.h" /* From libapps */
#ifdef _WIN32
#if defined(_WIN32) && !defined(__BORLANDC__)
# define strdup _strdup
#endif