Skip to content

Commit ce50b8c

Browse files
bryan-lipinskiBillyONeal
authored andcommitted
Undefine compress if it is defined by zconf.h (#1150)
1 parent e037858 commit ce50b8c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Release/src/http/common/http_compression.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232

3333
#if defined(CPPREST_HTTP_COMPRESSION)
3434
#include <zlib.h>
35+
// zconf.h may define compress
36+
#ifdef compress
37+
#undef compress
38+
#endif
3539
#if !defined(CPPREST_EXCLUDE_BROTLI)
3640
#define CPPREST_BROTLI_COMPRESSION
3741
#endif // CPPREST_EXCLUDE_BROTLI

0 commit comments

Comments
 (0)