]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: properly report when USE_ZLIB and USE_SLZ are used together
authorWilly Tarreau <w@1wt.eu>
Tue, 13 Oct 2015 14:45:21 +0000 (16:45 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 13 Oct 2015 14:47:16 +0000 (16:47 +0200)
Use #error here otherwise the errors are hard to spot for the casual
user.

include/types/compression.h

index ecbd5a12258792e8bd197cf15dc84004f96b8dc1..b79d7704b7186bcbe7bb07491eebe92f060d2562 100644 (file)
@@ -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>