From 1e53ec47a917450a0385beed27d0bf59ca957ca6 Mon Sep 17 00:00:00 2001 From: Deomid Ryabkov Date: Mon, 14 Dec 2015 18:34:50 +0200 Subject: [PATCH] Peeple TLS support for updates PUBLISHED_FROM=1abdacaece6dc63b6148c605c4c2cc41c3cc4ac6 --- mongoose.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mongoose.h b/mongoose.h index 777cd0ec..89e3e559 100644 --- a/mongoose.h +++ b/mongoose.h @@ -300,8 +300,6 @@ enum cs_log_level { _LL_MAX = 5, }; -#ifndef CS_NDEBUG - extern enum cs_log_level s_cs_log_level; void cs_log_set_level(enum cs_log_level level); @@ -313,6 +311,8 @@ void cs_log_printf(const char *fmt, ...); cs_log_printf x; \ } +#ifndef CS_NDEBUG + #define DBG(x) \ if (s_cs_log_level >= LL_VERBOSE_DEBUG) { \ fprintf(stderr, "%-20s ", __func__); \ @@ -321,9 +321,6 @@ void cs_log_printf(const char *fmt, ...); #else /* NDEBUG */ -#define cs_log_set_level(l) - -#define LOG(l, x) #define DBG(x) #endif