kopia lustrzana https://github.com/espressif/esp-idf
console: argtable3: use newlib getopt, disable logs
Opted for changing the source code to avoid adding one extra flag to component public CPPFLAGS.pull/10244/head
rodzic
85db9731e8
commit
5d13a0b544
|
@ -51,7 +51,7 @@ extern "C" {
|
|||
#define ARG_CMD_DESCRIPTION_LEN 256
|
||||
|
||||
#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 */
|
||||
|
||||
/* bit masks for arg_hdr.flag */
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
#include <stdlib.h>
|
||||
|
||||
#define ARG_ENABLE_TRACE 0
|
||||
#define ARG_ENABLE_LOG 1
|
||||
#define ARG_ENABLE_LOG 0
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
|
Ładowanie…
Reference in New Issue