File tree Expand file tree Collapse file tree 19 files changed +20
-37
lines changed Expand file tree Collapse file tree 19 files changed +20
-37
lines changed Original file line number Diff line number Diff line change 50
50
extern "C" {
51
51
#endif
52
52
53
+ #if defined(MBEDTLS_PLATFORM_C )
53
54
/**
54
55
* \name SECTION: Module settings
55
56
*
56
57
* The configuration options you can set for this module are in this section.
57
58
* Either change them in config.h or define them on the compiler command line.
58
59
* \{
59
60
*/
60
-
61
61
/* The older Microsoft Windows common runtime provides non-conforming
62
62
* implementations of some standard library functions, including snprintf
63
63
* and vsnprintf. This affects MSVC and MinGW builds.
@@ -411,6 +411,7 @@ int mbedtls_platform_setup( mbedtls_platform_context *ctx );
411
411
*/
412
412
void mbedtls_platform_teardown ( mbedtls_platform_context * ctx );
413
413
414
+ #endif /* MBEDTLS_PLATFORM_C */
414
415
#ifdef __cplusplus
415
416
}
416
417
#endif
Original file line number Diff line number Diff line change 38
38
#include <string.h>
39
39
40
40
#if defined(MBEDTLS_SELF_TEST )
41
- #if defined(MBEDTLS_PLATFORM_C )
42
41
#include "mbedtls/platform.h"
43
- #else
42
+ #if !defined( MBEDTLS_PLATFORM_C )
44
43
#include <stdio.h>
45
44
#define mbedtls_printf printf
46
45
#endif /* MBEDTLS_PLATFORM_C */
Original file line number Diff line number Diff line change 39
39
#include <string.h>
40
40
41
41
#if defined(MBEDTLS_SELF_TEST )
42
- #if defined(MBEDTLS_PLATFORM_C )
43
42
#include "mbedtls/platform.h"
44
- #else
43
+ #if !defined( MBEDTLS_PLATFORM_C )
45
44
#include <stdio.h>
46
45
#define mbedtls_printf printf
47
46
#endif /* MBEDTLS_PLATFORM_C */
Original file line number Diff line number Diff line change 42
42
#include <string.h>
43
43
44
44
#if defined(MBEDTLS_SELF_TEST ) && defined(MBEDTLS_AES_C )
45
- #if defined(MBEDTLS_PLATFORM_C )
46
45
#include "mbedtls/platform.h"
47
- #else
46
+ #if !defined( MBEDTLS_PLATFORM_C )
48
47
#include <stdio.h>
49
48
#define mbedtls_printf printf
50
49
#endif /* MBEDTLS_PLATFORM_C */
Original file line number Diff line number Diff line change 38
38
#include <string.h>
39
39
40
40
#if defined(MBEDTLS_SELF_TEST )
41
- #if defined(MBEDTLS_PLATFORM_C )
42
41
#include "mbedtls/platform.h"
43
- #else
42
+ #if !defined( MBEDTLS_PLATFORM_C )
44
43
#include <stdio.h>
45
44
#define mbedtls_printf printf
46
45
#endif /* MBEDTLS_PLATFORM_C */
Original file line number Diff line number Diff line change 34
34
#include <string.h>
35
35
36
36
#if defined(MBEDTLS_SELF_TEST )
37
- #if defined(MBEDTLS_PLATFORM_C )
38
37
#include "mbedtls/platform.h"
39
- #else
38
+ #if !defined( MBEDTLS_PLATFORM_C )
40
39
#include <stdio.h>
41
40
#define mbedtls_printf printf
42
41
#endif /* MBEDTLS_PLATFORM_C */
Original file line number Diff line number Diff line change 54
54
#include <string.h>
55
55
56
56
57
- #if defined(MBEDTLS_PLATFORM_C )
58
57
#include "mbedtls/platform.h"
59
- #else
58
+ #if !defined( MBEDTLS_PLATFORM_C )
60
59
#include <stdlib.h>
61
60
#define mbedtls_calloc calloc
62
61
#define mbedtls_free free
Original file line number Diff line number Diff line change 48
48
#include "mbedtls/asn1.h"
49
49
#endif
50
50
51
- #if defined(MBEDTLS_PLATFORM_C )
52
51
#include "mbedtls/platform.h"
53
- #else
52
+ #if !defined( MBEDTLS_PLATFORM_C )
54
53
#include <stdlib.h>
55
54
#include <stdio.h>
56
55
#define mbedtls_printf printf
Original file line number Diff line number Diff line change 92
92
#define ECP_VALIDATE ( cond ) \
93
93
MBEDTLS_INTERNAL_VALIDATE( cond )
94
94
95
- #if defined(MBEDTLS_PLATFORM_C )
96
95
#include "mbedtls/platform.h"
97
- #else
96
+ #if !defined( MBEDTLS_PLATFORM_C )
98
97
#include <stdlib.h>
99
98
#include <stdio.h>
100
99
#define mbedtls_printf printf
Original file line number Diff line number Diff line change 43
43
#endif
44
44
45
45
#if defined(MBEDTLS_SELF_TEST )
46
- #if defined(MBEDTLS_PLATFORM_C )
47
46
#include "mbedtls/platform.h"
48
- #else
47
+ #if !defined( MBEDTLS_PLATFORM_C )
49
48
#include <stdio.h>
50
49
#define mbedtls_printf printf
51
50
#endif /* MBEDTLS_SELF_TEST */
Original file line number Diff line number Diff line change 44
44
#include <string.h>
45
45
46
46
#if defined(MBEDTLS_SELF_TEST ) && defined(MBEDTLS_AES_C )
47
- #if defined(MBEDTLS_PLATFORM_C )
48
47
#include "mbedtls/platform.h"
49
- #else
48
+ #if !defined( MBEDTLS_PLATFORM_C )
50
49
#include <stdio.h>
51
50
#define mbedtls_printf printf
52
51
#endif /* MBEDTLS_PLATFORM_C */
Original file line number Diff line number Diff line change 47
47
48
48
#include <string.h>
49
49
50
- #if defined(MBEDTLS_PLATFORM_C )
51
50
#include "mbedtls/platform.h"
52
- #else
51
+ #if !defined( MBEDTLS_PLATFORM_C )
53
52
#include <stdio.h>
54
53
#define mbedtls_printf printf
55
54
#endif
Original file line number Diff line number Diff line change 34
34
#include <string.h>
35
35
36
36
#if defined(MBEDTLS_SELF_TEST )
37
- #if defined(MBEDTLS_PLATFORM_C )
38
37
#include "mbedtls/platform.h"
39
- #else
38
+ #if !defined( MBEDTLS_PLATFORM_C )
40
39
#include <stdio.h>
41
40
#define mbedtls_printf printf
42
41
#endif /* MBEDTLS_PLATFORM_C */
Original file line number Diff line number Diff line change 60
60
#include <stdlib.h>
61
61
#endif
62
62
63
- #if defined(MBEDTLS_PLATFORM_C )
64
63
#include "mbedtls/platform.h"
65
- #else
64
+ #if !defined( MBEDTLS_PLATFORM_C )
66
65
#include <stdio.h>
67
66
#define mbedtls_printf printf
68
67
#define mbedtls_calloc calloc
Original file line number Diff line number Diff line change 38
38
#include <string.h>
39
39
40
40
#if defined(MBEDTLS_SELF_TEST )
41
- #if defined(MBEDTLS_PLATFORM_C )
42
41
#include "mbedtls/platform.h"
43
- #else
42
+ #if !defined( MBEDTLS_PLATFORM_C )
44
43
#include <stdio.h>
45
44
#define mbedtls_printf printf
46
45
#endif /* MBEDTLS_PLATFORM_C */
Original file line number Diff line number Diff line change 38
38
#include <string.h>
39
39
40
40
#if defined(MBEDTLS_SELF_TEST )
41
- #if defined(MBEDTLS_PLATFORM_C )
42
41
#include "mbedtls/platform.h"
43
- #else
42
+ #if !defined( MBEDTLS_PLATFORM_C )
44
43
#include <stdio.h>
45
44
#include <stdlib.h>
46
45
#define mbedtls_printf printf
Original file line number Diff line number Diff line change 44
44
#include <string.h>
45
45
46
46
#if defined(MBEDTLS_SELF_TEST )
47
- #if defined(MBEDTLS_PLATFORM_C )
48
47
#include "mbedtls/platform.h"
49
- #else
48
+ #if !defined( MBEDTLS_PLATFORM_C )
50
49
#include <stdio.h>
51
50
#include <stdlib.h>
52
51
#define mbedtls_printf printf
Original file line number Diff line number Diff line change 33
33
#include <string.h>
34
34
35
35
#if defined(MBEDTLS_SELF_TEST )
36
- #if defined(MBEDTLS_PLATFORM_C )
37
36
#include "mbedtls/platform.h"
38
- #else
37
+ #if !defined( MBEDTLS_PLATFORM_C )
39
38
#include <stdio.h>
40
39
#define mbedtls_printf printf
41
40
#endif /* MBEDTLS_PLATFORM_C */
Original file line number Diff line number Diff line change 25
25
#include MBEDTLS_CONFIG_FILE
26
26
#endif
27
27
28
- #if defined(MBEDTLS_PLATFORM_C )
29
28
#include "mbedtls/platform.h"
30
- #else
29
+ #if !defined( MBEDTLS_PLATFORM_C )
31
30
#include <stdio.h>
32
31
#include <stdlib.h>
33
32
#define mbedtls_exit exit
You can’t perform that action at this time.
0 commit comments