establish default sqlcipher log level and target upon first activation
[sqlcipher.git] / src / msvc.h
blob10675e9a71855ac104af16d9ce587a8036595dcd
1 /*
2 ** 2015 January 12
3 **
4 ** The author disclaims copyright to this source code. In place of
5 ** a legal notice, here is a blessing:
6 **
7 ** May you do good and not evil.
8 ** May you find forgiveness for yourself and forgive others.
9 ** May you share freely, never taking more than you give.
11 ******************************************************************************
13 ** This file contains code that is specific to MSVC.
15 #ifndef SQLITE_MSVC_H
16 #define SQLITE_MSVC_H
18 #if defined(_MSC_VER)
19 #pragma warning(disable : 4054)
20 #pragma warning(disable : 4055)
21 #pragma warning(disable : 4100)
22 #pragma warning(disable : 4127)
23 #pragma warning(disable : 4130)
24 #pragma warning(disable : 4152)
25 #pragma warning(disable : 4189)
26 #pragma warning(disable : 4206)
27 #pragma warning(disable : 4210)
28 #pragma warning(disable : 4232)
29 #pragma warning(disable : 4244)
30 #pragma warning(disable : 4305)
31 #pragma warning(disable : 4306)
32 #pragma warning(disable : 4702)
33 #pragma warning(disable : 4706)
34 #endif /* defined(_MSC_VER) */
36 #if defined(_MSC_VER) && !defined(_WIN64)
37 #undef SQLITE_4_BYTE_ALIGNED_MALLOC
38 #define SQLITE_4_BYTE_ALIGNED_MALLOC
39 #endif /* defined(_MSC_VER) && !defined(_WIN64) */
41 #if !defined(HAVE_LOG2) && defined(_MSC_VER) && _MSC_VER<1800
42 #define HAVE_LOG2 0
43 #endif /* !defined(HAVE_LOG2) && defined(_MSC_VER) && _MSC_VER<1800 */
45 #endif /* SQLITE_MSVC_H */