diff options
author | drh <drh@noemail.net> | 2017-06-24 16:35:00 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2017-06-24 16:35:00 +0000 |
commit | 7f2d1cd2b0c2583c5a472982701b66d97c4528d0 (patch) | |
tree | db762ec886e69e1851160ecaf92693b639a6689f /src | |
parent | 54ac445d53512b3215ed41f8594815a46f9005cc (diff) | |
download | sqlite-7f2d1cd2b0c2583c5a472982701b66d97c4528d0.tar.gz sqlite-7f2d1cd2b0c2583c5a472982701b66d97c4528d0.zip |
Make sure the config.h header is included by ctime.c, if that header exists.
FossilOrigin-Name: c2ea62937ec8fabec72d3c7cd38d8e2cabbb5ce48638f8ce7ebefd6cd2716fd3
Diffstat (limited to 'src')
-rw-r--r-- | src/ctime.c | 8 | ||||
-rw-r--r-- | src/sqliteInt.h | 3 |
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" |