mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 10:46:02 -04:00
console: argtable3: use newlib getopt, disable logs
Opted for changing the source code to avoid adding one extra flag to component public CPPFLAGS.
This commit is contained in:
parent
85db9731e8
commit
5d13a0b544
@ -51,7 +51,7 @@ extern "C" {
|
|||||||
#define ARG_CMD_DESCRIPTION_LEN 256
|
#define ARG_CMD_DESCRIPTION_LEN 256
|
||||||
|
|
||||||
#ifndef ARG_REPLACE_GETOPT
|
#ifndef ARG_REPLACE_GETOPT
|
||||||
#define ARG_REPLACE_GETOPT 1 /* use the embedded getopt as the system getopt(3) */
|
#define ARG_REPLACE_GETOPT 0 /* ESP-IDF-specific: use newlib-provided getopt instead of the embedded one */
|
||||||
#endif /* ARG_REPLACE_GETOPT */
|
#endif /* ARG_REPLACE_GETOPT */
|
||||||
|
|
||||||
/* bit masks for arg_hdr.flag */
|
/* bit masks for arg_hdr.flag */
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#define ARG_ENABLE_TRACE 0
|
#define ARG_ENABLE_TRACE 0
|
||||||
#define ARG_ENABLE_LOG 1
|
#define ARG_ENABLE_LOG 0
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
Loading…
Reference in New Issue
Block a user