From fddd31175e74a538997a939d930462fde17d2dd4 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Tue, 18 Feb 2020 19:12:35 +0200 Subject: [PATCH] Revert the previous commit and add a comment. The previous commit broke crc32_tablegen.c. If the whole package is built without config.h (with defines set on the compiler command line) this should still work fine as long as these headers conform to C99 well enough. --- src/common/tuklib_config.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/common/tuklib_config.h b/src/common/tuklib_config.h index 8f2e9618..9d470ba7 100644 --- a/src/common/tuklib_config.h +++ b/src/common/tuklib_config.h @@ -1,7 +1,10 @@ -#include "sysdefs.h" - -// sysdefs.h takes care of these. -// #include -// #include -// #include -// #include +// If config.h isn't available, assume that the headers required by +// tuklib_common.h are available. This is required by crc32_tablegen.c. +#ifdef HAVE_CONFIG_H +# include "sysdefs.h" +#else +# include +# include +# include +# include +#endif