From c892c780c5737020c0ca80a4db4507066c3091e5 Mon Sep 17 00:00:00 2001 From: Joseph Bisch Date: Wed, 29 Aug 2018 21:05:33 -0400 Subject: [PATCH] Disable printf and fprintf when compiling with SUPPRESS_PRINTF_FALLBACK --- src/common.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common.h b/src/common.h index de29abd5..749e2838 100644 --- a/src/common.h +++ b/src/common.h @@ -116,4 +116,9 @@ typedef struct _CHANNEL_SETUP_REC CHANNEL_SETUP_REC; typedef struct _WINDOW_REC WINDOW_REC; +#ifdef SUPPRESS_PRINTF_FALLBACK +#define printf(fmt, ...) (0) +#define fprintf(stream, fmt, ...) (0) +#endif + #endif