mirror of
https://github.com/openssl/openssl.git
synced 2025-03-19 19:50:42 +08:00
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:
parent
6afb36342d
commit
96d4ec6724
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
#include "platform.h" /* From libapps */
|
||||
|
||||
#ifdef _WIN32
|
||||
#if defined(_WIN32) && !defined(__BORLANDC__)
|
||||
# define strdup _strdup
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user