8000 Add check for SQLITE_OS_WINRT for fopen_s usage · githubzhaoliang/sqlcipher@35aa9e0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 35aa9e0

Browse files
Add check for SQLITE_OS_WINRT for fopen_s usage
1 parent a11341d commit 35aa9e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crypto_impl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@ int sqlcipher_cipher_profile(sqlite3 *db, const char *destination){
12131213
}else if(sqlite3StrICmp(destination, "off") == 0){
12141214
f = 0;
12151215
}else{
1216-
#if defined(_WIN32) && (__STDC_VERSION__ > 199901L)
1216+
#if defined(_WIN32) && (__STDC_VERSION__ > 199901L) || defined(SQLITE_OS_WINRT)
12171217
if(fopen_s(&f, destination, "a") != 0){
1218< 4057 /td>1218
#else
12191219
f = fopen(destination, "a");

0 commit comments

Comments
 (0)
0