mirror of
https://github.com/haproxy/haproxy.git
synced 2026-05-28 04:12:17 -04:00
BUILD: properly report when USE_ZLIB and USE_SLZ are used together
Use #error here otherwise the errors are hard to spot for the casual user.
This commit is contained in:
parent
c0edfc281e
commit
a5c51ac6a6
1 changed files with 3 additions and 0 deletions
|
|
@ -24,6 +24,9 @@
|
|||
#define _TYPES_COMP_H
|
||||
|
||||
#if defined(USE_SLZ)
|
||||
#ifdef USE_ZLIB
|
||||
#error "Cannot build with both USE_SLZ and USE_ZLIB at the same time."
|
||||
#endif
|
||||
#include <slz.h>
|
||||
#elif defined(USE_ZLIB)
|
||||
#include <zlib.h>
|
||||
|
|
|
|||
Loading…
Reference in a new issue