Fixed bug #39380 Cannot build smtp example when debug is disabled

This commit is contained in:
Simon Goldschmidt 2014-02-22 20:10:42 +01:00
parent bb3e70c860
commit c2539dbc8c
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

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