소스 검색

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
 #endif
 
 
+
+#if defined(USE_TIMERS)
+
+#define TIMER_API static
+#include "timer.inl"
+
+#endif /* USE_TIMERS */
+
+
 #if !defined(NO_CGI)
 #if !defined(NO_CGI)
 /* This structure helps to create an environment for the spawned CGI
 /* This structure helps to create an environment for the spawned CGI
  * program.
  * 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
 static int
 abort_process(void *data)
 abort_process(void *data)
 {
 {