aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2023-10-15 13:36:21 +0000
committerstephan <stephan@noemail.net>2023-10-15 13:36:21 +0000
commit24f6baca164bde519de34be8a95bf018c2c6e445 (patch)
tree72da6cb82687382edebe5af66c362843a1ab1158 /src
parent5698e62f9ed056659133d486ef6d12ba484c4e38 (diff)
downloadsqlite-24f6baca164bde519de34be8a95bf018c2c6e445.tar.gz
sqlite-24f6baca164bde519de34be8a95bf018c2c6e445.zip
Change 3 instance of #if SQLITE_ENABLE_API_ARMOR to #ifdef for consistency with how it is normally used.
FossilOrigin-Name: dd766eeb59fec71627dd8ad8f120875b96fda455c6401e5671e086b785e2b2bc
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
-rw-r--r--src/mutex.c2
-rw-r--r--src/mutex_unix.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 4ffef9b41..893326c2b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -5012,7 +5012,7 @@ int sqlite3_compileoption_used(const char *zOptName){
int nOpt;
const char **azCompileOpt;
-#if SQLITE_ENABLE_API_ARMOR
+#ifdef SQLITE_ENABLE_API_ARMOR
if( zOptName==0 ){
(void)SQLITE_MISUSE_BKPT;
return 0;
diff --git a/src/mutex.c b/src/mutex.c
index 13a9fca15..381ffbdfd 100644
--- a/src/mutex.c
+++ b/src/mutex.c
@@ -133,7 +133,7 @@ static void checkMutexFree(sqlite3_mutex *p){
assert( SQLITE_MUTEX_FAST<2 );
assert( SQLITE_MUTEX_WARNONCONTENTION<2 );
-#if SQLITE_ENABLE_API_ARMOR
+#ifdef SQLITE_ENABLE_API_ARMOR
if( ((CheckMutex*)p)->iType<2 )
#endif
{
diff --git a/src/mutex_unix.c b/src/mutex_unix.c
index ac4331a67..beae877f9 100644
--- a/src/mutex_unix.c
+++ b/src/mutex_unix.c
@@ -223,7 +223,7 @@ static sqlite3_mutex *pthreadMutexAlloc(int iType){
*/
static void pthreadMutexFree(sqlite3_mutex *p){
assert( p->nRef==0 );
-#if SQLITE_ENABLE_API_ARMOR
+#ifdef SQLITE_ENABLE_API_ARMOR
if( p->id==SQLITE_MUTEX_FAST || p->id==SQLITE_MUTEX_RECURSIVE )
#endif
{