Rm obsolete defines for snprintf in programs

Now centralized in the platform layer
This commit is contained in:
Manuel Pégourié-Gonnard 2015-07-01 17:26:20 +02:00
parent 2505528be4
commit 046589e424
7 changed files with 0 additions and 36 deletions

View file

@ -32,7 +32,6 @@
#include <stdio.h>
#define mbedtls_snprintf snprintf
#define mbedtls_printf printf
#define mbedtls_snprintf snprintf
#endif
#if !defined(MBEDTLS_BIGNUM_C) || !defined(MBEDTLS_ENTROPY_C) || \
@ -58,10 +57,6 @@ int main( void )
#include <stdio.h>
#include <string.h>
#if defined _MSC_VER && !defined snprintf
#define snprintf _snprintf
#endif
int main( int argc, char *argv[] )
{
FILE *f;

View file

@ -32,7 +32,6 @@
#include <stdio.h>
#define mbedtls_snprintf snprintf
#define mbedtls_printf printf
#define mbedtls_snprintf snprintf
#endif
#if !defined(MBEDTLS_BIGNUM_C) || !defined(MBEDTLS_MD_C) || \
@ -54,10 +53,6 @@ int main( void )
#include <stdio.h>
#include <string.h>
#if defined _MSC_VER && !defined snprintf
#define snprintf _snprintf
#endif
int main( int argc, char *argv[] )
{
FILE *f;

View file

@ -32,7 +32,6 @@
#include <stdio.h>
#define mbedtls_snprintf snprintf
#define mbedtls_printf printf
#define mbedtls_snprintf snprintf
#endif
#if !defined(MBEDTLS_MD_C) || !defined(MBEDTLS_ENTROPY_C) || \
@ -59,10 +58,6 @@ int main( void )
#include <stdio.h>
#include <string.h>
#if defined _MSC_VER && !defined snprintf
#define snprintf _snprintf
#endif
int main( int argc, char *argv[] )
{
FILE *f;

View file

@ -32,7 +32,6 @@
#include <stdio.h>
#define mbedtls_snprintf snprintf
#define mbedtls_printf printf
#define mbedtls_snprintf snprintf
#endif
#if !defined(MBEDTLS_MD_C) || !defined(MBEDTLS_ENTROPY_C) || \
@ -58,10 +57,6 @@ int main( void )
#include <stdio.h>
#include <string.h>
#if defined _MSC_VER && !defined snprintf
#define snprintf _snprintf
#endif
int main( int argc, char *argv[] )
{
FILE *f;

View file

@ -32,7 +32,6 @@
#include <stdio.h>
#define mbedtls_printf printf
#define mbedtls_fprintf fprintf
#define mbedtls_printf printf
#define mbedtls_snprintf snprintf
#endif
@ -62,12 +61,6 @@ int main( void )
#include <stdlib.h>
#include <string.h>
#if defined(_MSC_VER) && !defined(EFIX64) && !defined(EFI32)
#if !defined snprintf
#define snprintf _snprintf
#endif
#endif
#define DFL_SERVER_NAME "localhost"
#define DFL_SERVER_ADDR NULL
#define DFL_SERVER_PORT "4433"

View file

@ -75,10 +75,6 @@ int main( void )
#include "mbedtls/memory_buffer_alloc.h"
#endif
#if defined _MSC_VER && !defined snprintf
#define snprintf _snprintf
#endif
/*
* For heap usage estimates, we need an estimate of the overhead per allocated
* block. ptmalloc2/3 (used in gnu libc for instance) uses 2 size_t per block,

View file

@ -32,7 +32,6 @@
#include <stdio.h>
#define mbedtls_snprintf snprintf
#define mbedtls_printf printf
#define mbedtls_snprintf snprintf
#endif
#if defined(MBEDTLS_RSA_C) && defined(MBEDTLS_X509_CRT_PARSE_C) && \
@ -44,10 +43,6 @@
#include <string.h>
#endif
#if defined _MSC_VER && !defined snprintf
#define snprintf _snprintf
#endif
#define MAX_CLIENT_CERTS 8
#if !defined(MBEDTLS_RSA_C) || !defined(MBEDTLS_X509_CRT_PARSE_C) || \