Skip to content

Commit 949f281

Browse files
committed
Avoid signature mismatch in variadic call to sqlite3_config in WebGL
1 parent 18af7b1 commit 949f281

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Runtime/SQLiteConfig.Log.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ internal static void SQLiteLogCallback(IntPtr userdata, Result resultCode, IntPt
2626
}
2727
}
2828

29+
#if UNITY_EDITOR || !UNITY_WEBGL
2930
static SQLite3()
3031
{
3132
const int SQLITE_CONFIG_LOG = 16; /* xFunc, void* */
3233
Config(SQLITE_CONFIG_LOG, Marshal.GetFunctionPointerForDelegate<SQLiteLogCallbackDelegate>(SQLiteLogCallback), IntPtr.Zero);
3334
}
35+
#endif
3436
}
3537
}

0 commit comments

Comments
 (0)