Skip to content

Commit 7773237

Browse files
authored
webserver: add define WEBSERVER_HAS_HOOK when ::addHook() is present (#7515)
This allows conditional compilation for external libraries
1 parent fc2426a commit 7773237

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/ESP8266WebServer/src/ESP8266WebServer.h

+2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ enum HTTPUploadStatus { UPLOAD_FILE_START, UPLOAD_FILE_WRITE, UPLOAD_FILE_END,
5050
enum HTTPClientStatus { HC_NONE, HC_WAIT_READ, HC_WAIT_CLOSE };
5151
enum HTTPAuthMethod { BASIC_AUTH, DIGEST_AUTH };
5252

53+
#define WEBSERVER_HAS_HOOK 1
54+
5355
#define HTTP_DOWNLOAD_UNIT_SIZE 1460
5456

5557
#ifndef HTTP_UPLOAD_BUFLEN

0 commit comments

Comments
 (0)