aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ctime.c8
-rw-r--r--src/sqliteInt.h3
2 files changed, 10 insertions, 1 deletions
diff --git a/src/ctime.c b/src/ctime.c
index 5644e5314..25df46c62 100644
--- a/src/ctime.c
+++ b/src/ctime.c
@@ -16,6 +16,14 @@
#ifndef SQLITE_OMIT_COMPILEOPTION_DIAGS
+/*
+** Include the configuration header output by 'configure' if we're using the
+** autoconf-based build
+*/
+#if defined(_HAVE_SQLITE_CONFIG_H) && !defined(SQLITECONFIG_H)
+#include "config.h"
+#define SQLITECONFIG_H 1
+#endif
/* These macros are provided to "stringify" the value of the define
** for those options in which the value is meaningful. */
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 89cb8c33e..ee83a511f 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -178,8 +178,9 @@
** Include the configuration header output by 'configure' if we're using the
** autoconf-based build
*/
-#ifdef _HAVE_SQLITE_CONFIG_H
+#if defined(_HAVE_SQLITE_CONFIG_H) && !defined(SQLITECONFIG_H)
#include "config.h"
+#define SQLITECONFIG_H 1
#endif
#include "sqliteLimit.h"