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.
This commit is contained in:
Lasse Collin 2020-02-18 19:12:35 +02:00
parent 4e4e9fbb7e
commit fddd31175e
1 changed files with 10 additions and 7 deletions

View File

@ -1,7 +1,10 @@
// 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"
// sysdefs.h takes care of these.
// #include <stddef.h>
// #include <stdbool.h>
// #include <inttypes.h>
// #include <limits.h>
#else
# include <stddef.h>
# include <stdbool.h>
# include <inttypes.h>
# include <limits.h>
#endif