diff options
author | drh <drh@noemail.net> | 2017-07-20 21:01:53 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2017-07-20 21:01:53 +0000 |
commit | 94e32acb5684d086e8168fa99368aa7af61e8307 (patch) | |
tree | b1d27a43b3e78723ca117e6b96ef0465c10998b7 /src | |
parent | d67a97705caa0951a32b6720cc0cbabf14f8c2bf (diff) | |
download | sqlite-94e32acb5684d086e8168fa99368aa7af61e8307.tar.gz sqlite-94e32acb5684d086e8168fa99368aa7af61e8307.zip |
Transform two #ifdef statements into #if statements.
FossilOrigin-Name: f2c6b5845028ef25dcd17e23e11b93c9f7296c26c7a21718fdae8f4b48c4e1da
Diffstat (limited to 'src')
-rw-r--r-- | src/memjournal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/memjournal.c b/src/memjournal.c index 493eb9a3b..31ab5ef93 100644 --- a/src/memjournal.c +++ b/src/memjournal.c @@ -96,7 +96,7 @@ static int memjrnlRead( int iChunkOffset; FileChunk *pChunk; -#ifdef SQLITE_ENABLE_ATOMIC_WRITE \ +#if defined(SQLITE_ENABLE_ATOMIC_WRITE) \ || defined(SQLITE_ENABLE_BATCH_ATOMIC_WRITE) if( (iAmt+iOfst)>p->endpoint.iOffset ){ return SQLITE_IOERR_SHORT_READ; @@ -216,7 +216,7 @@ static int memjrnlWrite( ** atomic-write optimization. In this case the first 28 bytes of the ** journal file may be written as part of committing the transaction. */ assert( iOfst==p->endpoint.iOffset || iOfst==0 ); -#ifdef SQLITE_ENABLE_ATOMIC_WRITE \ +#if defined(SQLITE_ENABLE_ATOMIC_WRITE) \ || defined(SQLITE_ENABLE_BATCH_ATOMIC_WRITE) if( iOfst==0 && p->pFirst ){ assert( p->nChunkSize>iAmt ); |