Addition conditions for UEFI environment under MSVC

This commit is contained in:
Paul Bakker 2013-10-29 15:22:54 +01:00
parent 7b0be68977
commit 6edcd41c0a
12 changed files with 27 additions and 14 deletions

View File

@ -44,7 +44,8 @@
#define POLARSSL_CIPHER_MODE_STREAM
#endif
#if defined(_MSC_VER) && !defined strcasecmp
#if defined(_MSC_VER) && !defined strcasecmp && !defined(EFIX64) && \
!defined(EFI32)
#define strcasecmp _stricmp
#endif

View File

@ -36,13 +36,15 @@
#include <stdio.h>
#endif
#if defined(_MSC_VER) && !defined snprintf
#if defined(_MSC_VER) && !defined(EFIX64) && !defined(EFI32)
#if !defined snprintf
#define snprintf _snprintf
#endif
#if defined(_MSC_VER) && !defined vsnprintf
#if !defined vsnprintf
#define vsnprintf _vsnprintf
#endif
#endif /* _MSC_VER */
char *debug_fmt( const char *format, ... )
{

View File

@ -160,7 +160,8 @@
#include <string.h>
#if defined(_MSC_VER) && !defined snprintf
#if defined(_MSC_VER) && !defined snprintf && !defined(EFIX64) && \
!defined(EFI32)
#define snprintf _snprintf
#endif

View File

@ -36,8 +36,9 @@
#include <stdlib.h>
#if defined(_MSC_VER) && !defined strcasecmp
#define snprintf _stricmp
#if defined(_MSC_VER) && !defined strcasecmp && !defined(EFIX64) && \
!defined(EFI32)
#define strcasecmp _stricmp
#endif
static const int supported_digests[] = {

View File

@ -542,7 +542,8 @@ FN_OID_TYPED_FROM_ASN1(oid_pkcs12_pbe_alg_t, pkcs12_pbe_alg, oid_pkcs12_pbe_alg)
FN_OID_GET_ATTR2(oid_get_pkcs12_pbe_alg, oid_pkcs12_pbe_alg_t, pkcs12_pbe_alg, md_type_t, md_alg, cipher_type_t, cipher_alg);
#endif /* POLARSSL_PKCS12_C */
#if defined(_MSC_VER) && !defined snprintf
#if defined(_MSC_VER) && !defined snprintf && !defined(EFIX64) && \
!defined(EFI32)
#include <stdarg.h>
#if !defined vsnprintf

View File

@ -34,7 +34,8 @@
#include <stdlib.h>
#if defined(_MSC_VER) && !defined strcasecmp
#if defined(_MSC_VER) && !defined strcasecmp && !defined(EFIX64) && \
!defined(EFI32)
#define strcasecmp _stricmp
#endif

View File

@ -47,7 +47,8 @@
#include <stdlib.h>
#if defined(_MSC_VER) && !defined strcasecmp
#if defined(_MSC_VER) && !defined strcasecmp && !defined(EFIX64) && \
!defined(EFI32)
#define strcasecmp _stricmp
#endif

View File

@ -429,7 +429,8 @@ 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 && !defined(EFIX64) && \
!defined(EFI32)
#include <stdarg.h>
#if !defined vsnprintf

View File

@ -31,7 +31,8 @@
#include "polarssl/asn1write.h"
#include "polarssl/oid.h"
#if defined(_MSC_VER) && !defined strncasecmp
#if defined(_MSC_VER) && !defined strncasecmp && !defined(EFIX64) && \
!defined(EFI32)
#define strncasecmp _strnicmp
#endif

View File

@ -545,7 +545,8 @@ int x509_crl_parse_file( x509_crl *chain, const char *path )
}
#endif /* POLARSSL_FS_IO */
#if defined(_MSC_VER) && !defined snprintf
#if defined(_MSC_VER) && !defined snprintf && !defined(EFIX64) && \
!defined(EFI32)
#include <stdarg.h>
#if !defined vsnprintf

View File

@ -1039,7 +1039,8 @@ int x509_crt_parse_path( x509_crt *chain, const char *path )
}
#endif /* POLARSSL_FS_IO */
#if defined(_MSC_VER) && !defined snprintf
#if defined(_MSC_VER) && !defined snprintf && !defined(EFIX64) && \
!defined(EFI32)
#include <stdarg.h>
#if !defined vsnprintf

View File

@ -302,7 +302,8 @@ int x509_csr_parse_file( x509_csr *csr, const char *path )
}
#endif /* POLARSSL_FS_IO */
#if defined(_MSC_VER) && !defined snprintf
#if defined(_MSC_VER) && !defined snprintf && !defined(EFIX64) && \
!defined(EFI32)
#include <stdarg.h>
#if !defined vsnprintf