瀏覽代碼

Move #include timer.inl before NO_CGI preprocessor block

bel2125 7 年之前
父節點
當前提交
3585668e20
共有 1 個文件被更改,包括 9 次插入8 次删除
  1. 9 8
      src/civetweb.c

+ 9 - 8
src/civetweb.c

@@ -10474,6 +10474,15 @@ forward_body_data(struct mg_connection *conn, FILE *fp, SOCKET sock, SSL *ssl)
 }
 #endif
 
+
+#if defined(USE_TIMERS)
+
+#define TIMER_API static
+#include "timer.inl"
+
+#endif /* USE_TIMERS */
+
+
 #if !defined(NO_CGI)
 /* This structure helps to create an environment for the spawned CGI
  * program.
@@ -10771,14 +10780,6 @@ prepare_cgi_environment(struct mg_connection *conn,
 }
 
 
-#if defined(USE_TIMERS)
-
-#define TIMER_API static
-#include "timer.inl"
-
-#endif /* USE_TIMERS */
-
-
 static int
 abort_process(void *data)
 {