Procházet zdrojové kódy

undefine macro before redefining

Fixes
src/main.c:89:9: error: 'printf' macro redefined [-Werror,-Wmacro-redefined]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Khem Raj před 6 roky
rodič
revize
105d0ae6db
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      src/main.c

+ 1 - 0
src/main.c

@@ -86,6 +86,7 @@
 
 
 #include "civetweb.h"
 #include "civetweb.h"
 
 
+#undef printf
 #define printf                                                                 \
 #define printf                                                                 \
 	DO_NOT_USE_THIS_FUNCTION__USE_fprintf /* Required for unit testing */
 	DO_NOT_USE_THIS_FUNCTION__USE_fprintf /* Required for unit testing */