diff options
Diffstat (limited to 'third_party/sqlite/preload-cache.patch')
-rw-r--r-- | third_party/sqlite/preload-cache.patch | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/sqlite/preload-cache.patch b/third_party/sqlite/preload-cache.patch index d11e763..0aafb92 100644 --- a/third_party/sqlite/preload-cache.patch +++ b/third_party/sqlite/preload-cache.patch @@ -161,7 +161,7 @@ Index: pager.c +** the allocation will be large, go directly to the OS instead of the heap. +**/ +static void* allocLarge(size_t size) { -+#ifdef OS_WIN ++#if OS_WIN + return VirtualAlloc(NULL, size, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE); +#else + return sqliteMallocRaw(size); @@ -169,7 +169,7 @@ Index: pager.c +} + +static void freeLarge(void* ptr) { -+#ifdef OS_WIN ++#if OS_WIN + VirtualFree(ptr, 0, MEM_RELEASE); +#else + sqliteFree(ptr); |