aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/memjournal.c3
-rw-r--r--src/sqliteInt.h6
2 files changed, 4 insertions, 5 deletions
diff --git a/src/memjournal.c b/src/memjournal.c
index eaa4d4f83..9ecd2a9ba 100644
--- a/src/memjournal.c
+++ b/src/memjournal.c
@@ -381,6 +381,7 @@ void sqlite3MemJournalOpen(sqlite3_file *pJfd){
sqlite3JournalOpen(0, 0, pJfd, 0, -1);
}
+#ifdef SQLITE_ENABLE_ATOMIC_WRITE
/*
** If the argument p points to a MemJournal structure that is not an
** in-memory-only journal file (i.e. is one that was opened with a +ve
@@ -394,6 +395,7 @@ int sqlite3JournalCreate(sqlite3_file *p){
}
return rc;
}
+#endif
/*
** The file-handle passed as the only argument is open on a journal file.
@@ -411,4 +413,3 @@ int sqlite3JournalIsInMemory(sqlite3_file *p){
int sqlite3JournalSize(sqlite3_vfs *pVfs){
return pVfs->szOsFile + sizeof(MemJournal);
}
-
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 69cbb6c60..387bb7436 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -3998,12 +3998,10 @@ const char *sqlite3JournalModename(int);
#define IN_INDEX_LOOP 0x0004 /* IN operator used as a loop */
int sqlite3FindInIndex(Parse *, Expr *, u32, int*);
+int sqlite3JournalOpen(sqlite3_vfs *, const char *, sqlite3_file *, int, int);
+int sqlite3JournalSize(sqlite3_vfs *);
#ifdef SQLITE_ENABLE_ATOMIC_WRITE
- int sqlite3JournalOpen(sqlite3_vfs *, const char *, sqlite3_file *, int, int);
- int sqlite3JournalSize(sqlite3_vfs *);
int sqlite3JournalCreate(sqlite3_file *);
-#else
- #define sqlite3JournalSize(pVfs) ((pVfs)->szOsFile)
#endif
int sqlite3JournalIsInMemory(sqlite3_file *p);