mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-24 00:06:32 +01:00
Defines for UEFI environment under MSVC added
This commit is contained in:
parent
178d9bac3c
commit
fa6a620b75
33 changed files with 94 additions and 54 deletions
|
|
@ -54,12 +54,16 @@
|
|||
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#if defined(_WIN32)
|
||||
#if defined(_WIN32) && !defined(EFIX64) && !defined(EFI32)
|
||||
#include <windows.h>
|
||||
#else
|
||||
#include <time.h>
|
||||
#endif
|
||||
|
||||
#if defined(EFIX64) || defined(EFI32)
|
||||
#include <stdio.h>
|
||||
#endif
|
||||
|
||||
#if defined(POLARSSL_FS_IO)
|
||||
#include <stdio.h>
|
||||
#if !defined(_WIN32)
|
||||
|
|
@ -425,7 +429,7 @@ int x509_load_file( const char *path, unsigned char **buf, size_t *n )
|
|||
}
|
||||
#endif /* POLARSSL_FS_IO */
|
||||
|
||||
#if defined _MSC_VER && !defined snprintf
|
||||
#if defined(_MSC_VER) && !defined snprintf
|
||||
#include <stdarg.h>
|
||||
|
||||
#if !defined vsnprintf
|
||||
|
|
@ -620,7 +624,7 @@ int x509_time_expired( const x509_time *to )
|
|||
int year, mon, day;
|
||||
int hour, min, sec;
|
||||
|
||||
#if defined(_WIN32)
|
||||
#if defined(_WIN32) && !defined(EFIX64) && !defined(EFI32)
|
||||
SYSTEMTIME st;
|
||||
|
||||
GetLocalTime(&st);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue