mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-03 23:47:08 +00:00
example/pan_lwip_http_server: allow build without lwIP support for custom files in http server
This commit is contained in:
parent
f2ca42dfa8
commit
fdfba5a318
@ -71,11 +71,10 @@
|
|||||||
#include "lwip/apps/httpd.h"
|
#include "lwip/apps/httpd.h"
|
||||||
#include "dhserver.h"
|
#include "dhserver.h"
|
||||||
|
|
||||||
#if !LWIP_HTTPD_CUSTOM_FILES
|
#if defined(LWIP_HTTPD_CUSTOM_FILES) && defined(LWIP_HTTPD_DYNAMIC_HEADERS)
|
||||||
#error This needs LWIP_HTTPD_CUSTOM_FILES
|
#define ENABLE_TEST_FILE_DOWNLOAD
|
||||||
#endif
|
#else
|
||||||
#if !LWIP_HTTPD_DYNAMIC_HEADERS
|
#warning "Test file download requires LWIP_HTTPD_CUSTOM_FILES and LWIP_HTTPD_DYNAMIC_HEADERS to be defined. Not supported currently."
|
||||||
#error This needs LWIP_HTTPD_DYNAMIC_HEADERS
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// network types
|
// network types
|
||||||
@ -228,6 +227,7 @@ static dhcp_config_t dhcp_config =
|
|||||||
};
|
};
|
||||||
/* LISTING_END */
|
/* LISTING_END */
|
||||||
|
|
||||||
|
#ifdef ENABLE_TEST_FILE_DOWNLOAD
|
||||||
|
|
||||||
/* @section Large File Download
|
/* @section Large File Download
|
||||||
*
|
*
|
||||||
@ -307,7 +307,7 @@ void fs_close_custom(struct fs_file *file);
|
|||||||
void fs_close_custom(struct fs_file *file){
|
void fs_close_custom(struct fs_file *file){
|
||||||
UNUSED(file);
|
UNUSED(file);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
/* LISTING_END */
|
/* LISTING_END */
|
||||||
|
|
||||||
/* @section DHCP Server Setup
|
/* @section DHCP Server Setup
|
||||||
|
Loading…
Reference in New Issue
Block a user