mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 15:04:18 +01:00
Address review comments - tidy usage of macros to use minimal values
This commit is contained in:
parent
2682edf205
commit
61fa436ad3
@ -19,8 +19,8 @@
|
|||||||
* This file is part of mbed TLS (https://tls.mbed.org)
|
* This file is part of mbed TLS (https://tls.mbed.org)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Enable definition of hostname() even when compiling with -std=c99. Must be
|
/* Enable definition of gethostname() even when compiling with -std=c99. Must
|
||||||
* set before config.h, which pulls in glibc's features.h indirectly.
|
* be set before config.h, which pulls in glibc's features.h indirectly.
|
||||||
* Harmless on other platforms. */
|
* Harmless on other platforms. */
|
||||||
#define _POSIX_C_SOURCE 200112L
|
#define _POSIX_C_SOURCE 200112L
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@ if(NOT PERL_FOUND)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Enable definition of various functions used throughout the testsuite
|
# Enable definition of various functions used throughout the testsuite
|
||||||
# (hostname, strdup, fileno...) even when compiling with -std=c99. Harmless
|
# (gethostname, strdup, fileno...) even when compiling with -std=c99. Harmless
|
||||||
# on non-POSIX platforms.
|
# on non-POSIX platforms.
|
||||||
add_definitions("-D_POSIX_C_SOURCE=200809L")
|
add_definitions("-D_POSIX_C_SOURCE=200809L")
|
||||||
|
|
||||||
|
@ -12,6 +12,11 @@ LOCAL_LDFLAGS = -L../library \
|
|||||||
-lmbedx509$(SHARED_SUFFIX) \
|
-lmbedx509$(SHARED_SUFFIX) \
|
||||||
-lmbedcrypto$(SHARED_SUFFIX)
|
-lmbedcrypto$(SHARED_SUFFIX)
|
||||||
|
|
||||||
|
# Enable definition of various functions used throughout the testsuite
|
||||||
|
# (gethostname, strdup, fileno...) even when compiling with -std=c99. Harmless
|
||||||
|
# on non-POSIX platforms.
|
||||||
|
LOCAL_CFLAGS += -D_POSIX_C_SOURCE=200809L
|
||||||
|
|
||||||
ifndef SHARED
|
ifndef SHARED
|
||||||
DEP=../library/libmbedcrypto.a ../library/libmbedx509.a ../library/libmbedtls.a
|
DEP=../library/libmbedcrypto.a ../library/libmbedx509.a ../library/libmbedtls.a
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user