فهرست منبع

Add #ifdef to remove function not used if NO_CACHING is not set

bel 9 سال پیش
والد
کامیت
e783af1fc3
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      src/civetweb.c

+ 2 - 0
src/civetweb.c

@@ -6755,6 +6755,7 @@ handle_static_file_request(struct mg_connection *conn,
 }
 }
 
 
 
 
+#if !defined(NO_CACHING)
 static void
 static void
 handle_not_modified_static_file_request(struct mg_connection *conn,
 handle_not_modified_static_file_request(struct mg_connection *conn,
                                         struct file *filep)
                                         struct file *filep)
@@ -6786,6 +6787,7 @@ handle_not_modified_static_file_request(struct mg_connection *conn,
 	                etag,
 	                etag,
 	                suggest_connection_header(conn));
 	                suggest_connection_header(conn));
 }
 }
+#endif
 
 
 
 
 void
 void