From 6f35750118a06e9d11e6aa7ab29f4ef01b75898b Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Tue, 23 Nov 2021 14:19:23 -0500 Subject: basehttp: Rename HaveContent's Tristate Darwin systems define TRUE and FALSE as preprocessor macros for use with bool. This conflicts with the enum values causing the compilation to fail. --- methods/basehttp.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'methods/basehttp.h') diff --git a/methods/basehttp.h b/methods/basehttp.h index 2a13c7abf..0f776b0a8 100644 --- a/methods/basehttp.h +++ b/methods/basehttp.h @@ -29,9 +29,9 @@ struct ServerState; enum class HaveContent { - UNKNOWN, - FALSE, - TRUE, + TRI_UNKNOWN, + TRI_FALSE, + TRI_TRUE, }; struct RequestState { @@ -52,7 +52,7 @@ struct RequestState unsigned long long MaximumSize = 0; time_t Date; - HaveContent haveContent = HaveContent::UNKNOWN; + HaveContent haveContent = HaveContent::TRI_UNKNOWN; enum {Chunked,Stream,Closes} Encoding = Closes; enum {Header, Data} State = Header; -- cgit v1.2.3-70-g09d2