diff --git a/include/netutils/webclient.h b/include/netutils/webclient.h index f53ed4657..bdf05b33d 100644 --- a/include/netutils/webclient.h +++ b/include/netutils/webclient.h @@ -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 ****************************************************************************/ diff --git a/netutils/webclient/webclient.c b/netutils/webclient/webclient.c index 0a70d0e7e..1bb67c1ca 100644 --- a/netutils/webclient/webclient.c +++ b/netutils/webclient/webclient.c @@ -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)