summaryrefslogtreecommitdiff
path: root/methods/basehttp.h
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-11-23 14:19:23 -0500
committerCameron Katri <me@cameronkatri.com>2021-11-23 14:19:23 -0500
commit6f35750118a06e9d11e6aa7ab29f4ef01b75898b (patch)
tree9b3f0acef4bd6f981313f310c32643ef0954b2fd /methods/basehttp.h
parent383d168b70706facfef5c8736300112cbe08a03e (diff)
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.
Diffstat (limited to 'methods/basehttp.h')
-rw-r--r--methods/basehttp.h8
1 files changed, 4 insertions, 4 deletions
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;