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:
Willy Tarreau 2015-10-13 16:45:21 +02:00
parent c0edfc281e
commit a5c51ac6a6
1 changed files with 3 additions and 0 deletions

View 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>