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:
Ivan Grokhotkov 2022-04-05 19:49:51 +02:00
parent 85db9731e8
commit 5d13a0b544
No known key found for this signature in database
GPG Key ID: 1E050E141B280628
2 changed files with 2 additions and 2 deletions

View File

@ -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 */

View File

@ -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" {