Fixed bug #39380 Cannot build smtp example when debug is disabled
This commit is contained in:
parent
bb3e70c860
commit
c2539dbc8c
|
@ -199,7 +199,7 @@ enum smtp_session_state {
|
|||
SMTP_CLOSED
|
||||
};
|
||||
|
||||
#if LWIP_DEBUG
|
||||
#ifdef LWIP_DEBUG
|
||||
/** State-to-string table for debugging */
|
||||
const char *smtp_state_str[] = {
|
||||
"SMTP_NULL",
|
||||
|
@ -299,7 +299,7 @@ static void smtp_send_body(struct smtp_session *s, struct tcp_pcb *pcb);
|
|||
static void smtp_process(void *arg, struct tcp_pcb *pcb, struct pbuf *p);
|
||||
|
||||
|
||||
#if LWIP_DEBUG
|
||||
#ifdef LWIP_DEBUG
|
||||
/** Convert an smtp result to a string */
|
||||
const char*
|
||||
smtp_result_str(u8_t smtp_result)
|
||||
|
|
|
@ -60,7 +60,7 @@ err_t smtp_send_mail(const char *from, const char* to, const char* subject, cons
|
|||
err_t smtp_send_mail_static(const char *from, const char* to, const char* subject, const char* body,
|
||||
smtp_result_fn callback_fn, void* callback_arg);
|
||||
void smtp_send_mail_int(void *arg);
|
||||
#if LWIP_DEBUG
|
||||
#ifdef LWIP_DEBUG
|
||||
const char* smtp_result_str(u8_t smtp_result);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in New Issue