1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Do not embedded #if inside an assert() statement.

Fix for check-in [dca8763872a]

FossilOrigin-Name: d7d4a94fc1209fd32d7c8e20ac83eb169b81ee25
This commit is contained in:
drh
2010-10-05 18:22:47 +00:00
parent 96b958afae
commit f7f55edb68
3 changed files with 22 additions and 11 deletions

View File

@@ -4081,11 +4081,12 @@ static int fillInUnixFile(
** exception is when opening the proxy "conch" file in builds that
** include the special Apple locking styles.
*/
assert( zFilename==0 || zFilename[0]=='/'
#if defined(__APPLE__) && SQLITE_ENABLE_LOCKING_STYLE
|| pVfs->pAppData==(void*)&autolockIoFinder
assert( zFilename==0 || zFilename[0]=='/'
|| pVfs->pAppData==(void*)&autolockIoFinder );
#else
assert( zFilename==0 || zFilename[0]=='/' );
#endif
);
OSTRACE(("OPEN %-3d %s\n", h, zFilename));
pNew->h = h;