Skip to content

Commit 91b2ad7

Browse files
committed
Fix [-Wundef] warning in SQLite3 extension
1 parent 6c2016b commit 91b2ad7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/sqlite3/sqlite3.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ PHP_METHOD(SQLite3, open)
148148
return;
149149
}
150150

151-
#if SQLITE_HAS_CODEC
151+
#ifdef SQLITE_HAS_CODEC
152152
if (encryption_key_len > 0) {
153153
if (sqlite3_key(db_obj->db, encryption_key, encryption_key_len) != SQLITE_OK) {
154154
sqlite3_close(db_obj->db);
@@ -2423,7 +2423,7 @@ PHP_MINIT_FUNCTION(sqlite3)
24232423
{
24242424
zend_class_entry ce;
24252425

2426-
#if defined(ZTS)
2426+
#ifdef ZTS
24272427
/* Refuse to load if this wasn't a threasafe library loaded */
24282428
if (!sqlite3_threadsafe()) {
24292429
php_error_docref(NULL, E_WARNING, "A thread safe version of SQLite is required when using a thread safe version of PHP.");

0 commit comments

Comments
 (0)