mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 17:15:44 +01:00
Fix query_config macro expansion for windows
This commit is contained in:
parent
024694e7d5
commit
c46ea38f90
@ -107,8 +107,12 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
/* Helper macros to convert a macro or its expansion into a string */
|
/* Helper macros to convert a macro or its expansion into a string */
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#define MACRO_EXPANSION_TO_STR(macro) strlen( #macro ) > 0 ? #macro "\n" : ""
|
||||||
|
#else
|
||||||
#define MACRO_EXPANSION_TO_STR(macro) MACRO_NAME_TO_STR(macro)
|
#define MACRO_EXPANSION_TO_STR(macro) MACRO_NAME_TO_STR(macro)
|
||||||
#define MACRO_NAME_TO_STR(macro) strlen( #macro ) > 0 ? #macro "\n" : ""
|
#define MACRO_NAME_TO_STR(macro) strlen( #macro ) > 0 ? #macro "\n" : ""
|
||||||
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
int query_config( const char *config )
|
int query_config( const char *config )
|
||||||
{
|
{
|
||||||
|
@ -107,8 +107,12 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
/* Helper macros to convert a macro or its expansion into a string */
|
/* Helper macros to convert a macro or its expansion into a string */
|
||||||
|
#if defined(_MSC_VER)
|
||||||
|
#define MACRO_EXPANSION_TO_STR(macro) strlen( #macro ) > 0 ? #macro "\n" : ""
|
||||||
|
#else
|
||||||
#define MACRO_EXPANSION_TO_STR(macro) MACRO_NAME_TO_STR(macro)
|
#define MACRO_EXPANSION_TO_STR(macro) MACRO_NAME_TO_STR(macro)
|
||||||
#define MACRO_NAME_TO_STR(macro) strlen( #macro ) > 0 ? #macro "\n" : ""
|
#define MACRO_NAME_TO_STR(macro) strlen( #macro ) > 0 ? #macro "\n" : ""
|
||||||
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
int query_config( const char *config )
|
int query_config( const char *config )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user