Add check for SQLITE_OS_WINRT for fopen_s usage
This commit is contained in:
parent
a11341d185
commit
35aa9e0968
|
@ -1213,7 +1213,7 @@ int sqlcipher_cipher_profile(sqlite3 *db, const char *destination){
|
||||||
}else if(sqlite3StrICmp(destination, "off") == 0){
|
}else if(sqlite3StrICmp(destination, "off") == 0){
|
||||||
f = 0;
|
f = 0;
|
||||||
}else{
|
}else{
|
||||||
#if defined(_WIN32) && (__STDC_VERSION__ > 199901L)
|
#if defined(_WIN32) && (__STDC_VERSION__ > 199901L) || defined(SQLITE_OS_WINRT)
|
||||||
if(fopen_s(&f, destination, "a") != 0){
|
if(fopen_s(&f, destination, "a") != 0){
|
||||||
#else
|
#else
|
||||||
f = fopen(destination, "a");
|
f = fopen(destination, "a");
|
||||||
|
|
Loading…
Reference in New Issue