diff options
author | larrybr <larrybr@noemail.net> | 2021-07-09 00:12:05 +0000 |
---|---|---|
committer | larrybr <larrybr@noemail.net> | 2021-07-09 00:12:05 +0000 |
commit | a13c0c73c53e3896e8c682b562d761147116a765 (patch) | |
tree | 8408ec39b1e9e06ba146c7c73743fa1c9a055bbe /src | |
parent | b523159f4054a532474701a575e226e2f4e1a12a (diff) | |
download | sqlite-a13c0c73c53e3896e8c682b562d761147116a765.tar.gz sqlite-a13c0c73c53e3896e8c682b562d761147116a765.zip |
Allow CLI shell build to #include same user-specified header as library build.
FossilOrigin-Name: eb8af9a494fb68c0a1c600b3ac71467645b51b296fc6e2116d7d855319d59a59
Diffstat (limited to 'src')
-rw-r--r-- | src/shell.c.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/shell.c.in b/src/shell.c.in index f90822e28..248bc0dc0 100644 --- a/src/shell.c.in +++ b/src/shell.c.in @@ -18,6 +18,18 @@ #endif /* +** Optionally #include a user-defined header, whereby compilation options +** may be set prior to where they take effect, but after platform setup. +** If SQLITE_CUSTOM_INCLUDE=? is defined, its value names the #include +** file. Note that this macro has a like effect on sqlite3.c compilation. +*/ +#ifdef SQLITE_CUSTOM_INCLUDE +# define INC_STRINGIFY_(f) #f +# define INC_STRINGIFY(f) INC_STRINGIFY_(f) +# include INC_STRINGIFY(SQLITE_CUSTOM_INCLUDE) +#endif + +/* ** Determine if we are dealing with WinRT, which provides only a subset of ** the full Win32 API. */ |