mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-09-16 23:29:56 +00:00
Tell MSVC to allow non-s functions where needed
Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
@@ -43,4 +43,13 @@
|
|||||||
#define __USE_MINGW_ANSI_STDIO 1
|
#define __USE_MINGW_ANSI_STDIO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Tell MSVC that we're ok with using classic C functions even
|
||||||
|
* when an `_s` variant exist. For most functions, the improvements
|
||||||
|
* of the `_s` variants are of limited usefulness and not worth
|
||||||
|
* the portability headaches.
|
||||||
|
*/
|
||||||
|
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
|
||||||
|
#define _CRT_SECURE_NO_DEPRECATE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* MBEDTLS_MBEDTLS_PLATFORM_REQUIREMENTS_H */
|
#endif /* MBEDTLS_MBEDTLS_PLATFORM_REQUIREMENTS_H */
|
||||||
|
|||||||
@@ -17,6 +17,15 @@
|
|||||||
#define __USE_MINGW_ANSI_STDIO 1
|
#define __USE_MINGW_ANSI_STDIO 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Tell MSVC that we're ok with using classic C functions even
|
||||||
|
* when an `_s` variant exist. For most functions, the improvements
|
||||||
|
* of the `_s` variants are of limited usefulness and not worth
|
||||||
|
* the portability headaches.
|
||||||
|
*/
|
||||||
|
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
|
||||||
|
#define _CRT_SECURE_NO_DEPRECATE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#define MBEDTLS_ALLOW_PRIVATE_ACCESS
|
#define MBEDTLS_ALLOW_PRIVATE_ACCESS
|
||||||
|
|
||||||
#include "mbedtls/private/pk_private.h"
|
#include "mbedtls/private/pk_private.h"
|
||||||
|
|||||||
@@ -5,6 +5,15 @@
|
|||||||
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* Tell MSVC that we're ok with using classic C functions even
|
||||||
|
* when an `_s` variant exist. For most functions, the improvements
|
||||||
|
* of the `_s` variants are of limited usefulness and not worth
|
||||||
|
* the portability headaches.
|
||||||
|
*/
|
||||||
|
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
|
||||||
|
#define _CRT_SECURE_NO_DEPRECATE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "mbedtls/build_info.h"
|
#include "mbedtls/build_info.h"
|
||||||
|
|
||||||
#include "mbedtls/platform.h"
|
#include "mbedtls/platform.h"
|
||||||
|
|||||||
@@ -5,6 +5,15 @@
|
|||||||
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* Tell MSVC that we're ok with using classic C functions even
|
||||||
|
* when an `_s` variant exist. For most functions, the improvements
|
||||||
|
* of the `_s` variants are of limited usefulness and not worth
|
||||||
|
* the portability headaches.
|
||||||
|
*/
|
||||||
|
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
|
||||||
|
#define _CRT_SECURE_NO_DEPRECATE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#define MBEDTLS_DECLARE_PRIVATE_IDENTIFIERS
|
#define MBEDTLS_DECLARE_PRIVATE_IDENTIFIERS
|
||||||
|
|
||||||
#include "mbedtls/build_info.h"
|
#include "mbedtls/build_info.h"
|
||||||
|
|||||||
@@ -5,6 +5,15 @@
|
|||||||
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* Tell MSVC that we're ok with using classic C functions even
|
||||||
|
* when an `_s` variant exist. For most functions, the improvements
|
||||||
|
* of the `_s` variants are of limited usefulness and not worth
|
||||||
|
* the portability headaches.
|
||||||
|
*/
|
||||||
|
#if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
|
||||||
|
#define _CRT_SECURE_NO_DEPRECATE 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#define MBEDTLS_DECLARE_PRIVATE_IDENTIFIERS
|
#define MBEDTLS_DECLARE_PRIVATE_IDENTIFIERS
|
||||||
|
|
||||||
#include "mbedtls/build_info.h"
|
#include "mbedtls/build_info.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user