Protect inclusions of autotools_config.h with HAVE_CONFIG_H

This commit is contained in:
Jon Trulson
2019-10-28 15:01:02 -06:00
parent 9eee455580
commit 86bae29d78
2 changed files with 8 additions and 3 deletions

View File

@@ -47,7 +47,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#if defined(HAVE_CONFIG_H)
# include <autotools_config.h> # include <autotools_config.h>
#endif
#if defined(HAVE_LOCALE_H) #if defined(HAVE_LOCALE_H)
# include <locale.h> # include <locale.h>
#endif #endif

View File

@@ -44,7 +44,10 @@
*/ */
/* use autotools detection to determine endianess */ /* use autotools detection to determine endianess */
#if defined(HAVE_CONFIG_H)
# include <autotools_config.h> # include <autotools_config.h>
#endif
#ifndef WORDS_BIGENDIAN #ifndef WORDS_BIGENDIAN
# define LSB_BIT_ORDER # define LSB_BIT_ORDER
#endif #endif