From 35aa9e09686f8df6a40933d0bb099407099f9c00 Mon Sep 17 00:00:00 2001 From: Nick Parker Date: Tue, 14 Jun 2016 09:21:41 -0500 Subject: [PATCH] Add check for SQLITE_OS_WINRT for fopen_s usage --- src/crypto_impl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto_impl.c b/src/crypto_impl.c index 869c3be..7d40ed3 100644 --- a/src/crypto_impl.c +++ b/src/crypto_impl.c @@ -1213,7 +1213,7 @@ int sqlcipher_cipher_profile(sqlite3 *db, const char *destination){ }else if(sqlite3StrICmp(destination, "off") == 0){ f = 0; }else{ -#if defined(_WIN32) && (__STDC_VERSION__ > 199901L) +#if defined(_WIN32) && (__STDC_VERSION__ > 199901L) || defined(SQLITE_OS_WINRT) if(fopen_s(&f, destination, "a") != 0){ #else f = fopen(destination, "a");