mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-09 16:21:45 +00:00
Fix build with CS_ENABLE_STDIO=0
Closes https://github.com/cesanta/mongoose/pull/945 CL: Fix build with CS_ENABLE_STDIO=0 PUBLISHED_FROM=7d15f17fc42241facdba5b1004b5b7f3dda599dc
This commit is contained in:
1 parent
98c99279c3
commit
31632c6361
6 files changed
+30
-6
No files matched your search
@@ -117,6 +117,8 @@ void cs_log_set_file(FILE *file);
|
||||
*/
|
||||
void cs_log_printf(const char *fmt, ...) PRINTF_LIKE(1, 2);
|
||||
|
||||
#if CS_ENABLE_STDIO
|
||||
|
||||
/*
|
||||
* Format and print message `x` with the given level `l`. Example:
|
||||
*
|
||||
@@ -130,6 +132,12 @@ void cs_log_printf(const char *fmt, ...) PRINTF_LIKE(1, 2);
|
||||
if (cs_log_print_prefix(l, __func__, __FILE__)) cs_log_printf x; \
|
||||
} while (0)
|
||||
|
||||
#else
|
||||
|
||||
#define LOG(l, x) ((void) l)
|
||||
|
||||
#endif
|
||||
|
||||
#ifndef CS_NDEBUG
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user