Skip to content

Commit

Permalink
Undefine compress if it is defined by zconf.h (#1150)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-lipinski authored and BillyONeal committed Jun 10, 2019
1 parent e037858 commit ce50b8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Release/src/http/common/http_compression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@

#if defined(CPPREST_HTTP_COMPRESSION)
#include <zlib.h>
// zconf.h may define compress
#ifdef compress
#undef compress
#endif
#if !defined(CPPREST_EXCLUDE_BROTLI)
#define CPPREST_BROTLI_COMPRESSION
#endif // CPPREST_EXCLUDE_BROTLI
Expand Down

0 comments on commit ce50b8c

Please sign in to comment.