diff options
author | Dan Gohman <sunfish@google.com> | 2014-02-24 08:46:38 -0800 |
---|---|---|
committer | Dan Gohman <sunfish@google.com> | 2014-02-25 11:58:53 -0800 |
commit | 3317f2cd793893073619a87a462da26c505ba9eb (patch) | |
tree | 89929a716269220d19aa3c4b6d2cd8bbe13343b7 /tests/sqlite/sqlite3.c | |
parent | c600155b1fef26a248d6467a89030328db0fedab (diff) |
Use __EMSCRIPTEN__ instead of EMSCRIPTEN in tests.
Diffstat (limited to 'tests/sqlite/sqlite3.c')
-rw-r--r-- | tests/sqlite/sqlite3.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/sqlite/sqlite3.c b/tests/sqlite/sqlite3.c index bcbb7cdd..d49e1887 100644 --- a/tests/sqlite/sqlite3.c +++ b/tests/sqlite/sqlite3.c @@ -38132,7 +38132,7 @@ static int writeJournalHdr(Pager *pPager){ u32 nHeader = (u32)pPager->pageSize;/* Size of buffer pointed to by zHeader */ u32 nWrite; /* Bytes of header sector written */ int ii; /* Loop counter */ -#ifdef EMSCRIPTEN +#ifdef __EMSCRIPTEN__ u8 temp[4]; #endif @@ -38185,7 +38185,7 @@ static int writeJournalHdr(Pager *pPager){ } /* The random check-hash initialiser */ -#ifdef EMSCRIPTEN +#ifdef __EMSCRIPTEN__ sqlite3_randomness(sizeof(pPager->cksumInit), temp); pPager->cksumInit = temp[0] + (((u32)temp[1]) << 8) + (((u32)temp[2]) << 16) + (((u32)temp[3]) << 24); #else @@ -52942,7 +52942,7 @@ static void dropCell(MemPage *pPage, int idx, int sz, int *pRC){ endPtr = &data[pPage->cellOffset + 2*pPage->nCell - 2]; assert( (SQLITE_PTR_TO_INT(ptr)&1)==0 ); /* ptr is always 2-byte aligned */ while( ptr<endPtr ){ -#ifdef EMSCRIPTEN +#ifdef __EMSCRIPTEN__ ptr[0] = ptr[2]; ptr[1] = ptr[3]; #else @@ -53043,7 +53043,7 @@ static void insertCell( endPtr = &data[ins]; assert( (SQLITE_PTR_TO_INT(ptr)&1)==0 ); /* ptr is always 2-byte aligned */ while( ptr>endPtr ){ -#ifdef EMSCRIPTEN +#ifdef __EMSCRIPTEN__ ptr[0] = ptr[-2]; ptr[1] = ptr[-1]; #else |