webclient: move WGET_USE_URLENCODE definiton to the header

Because it's used by the header.

This fixes warnings while building wgetjson.
This commit is contained in:
YAMAMOTO Takashi 2020-09-29 16:56:56 +09:00 committed by Alin Jerpelea
parent 5e1ba408b4
commit b78370dbf2
2 changed files with 6 additions and 1 deletions

View File

@ -69,6 +69,12 @@
# define CONFIG_WEBCLIENT_MAXFILENAME 100
#endif
#if defined(CONFIG_NETUTILS_CODECS)
# if defined(CONFIG_CODECS_URLCODE)
# define WGET_USE_URLENCODE 1
# endif
#endif
/****************************************************************************
* Public types
****************************************************************************/

View File

@ -75,7 +75,6 @@
#if defined(CONFIG_NETUTILS_CODECS)
# if defined(CONFIG_CODECS_URLCODE)
# define WGET_USE_URLENCODE 1
# include "netutils/urldecode.h"
# endif
# if defined(CONFIG_CODECS_BASE64)