Procházet zdrojové kódy

Move printf blocking define below include civetweb.h

bel před 9 roky
rodič
revize
f7eb8a1e5b
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      src/main.c

+ 3 - 3
src/main.c

@@ -43,9 +43,6 @@
 #define NO_RETURN
 #endif
 
-#define printf                                                                 \
-	DO_NOT_USE_THIS_FUNCTION__USE_fprintf /* Required for unit testing */
-
 #include <sys/stat.h>
 #include <stdio.h>
 #include <stdint.h>
@@ -61,6 +58,9 @@
 
 #include "civetweb.h"
 
+#define printf                                                                 \
+	DO_NOT_USE_THIS_FUNCTION__USE_fprintf /* Required for unit testing */
+
 #if defined(_WIN32) &&                                                         \
     !defined(__SYMBIAN32__) /* WINDOWS / UNIX include block */
 #ifndef _WIN32_WINNT