Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: third_party/sqlite/sqlite-src-3080704/src/os_win.h

Issue 883353008: [sql] Import reference version of SQLite 3.8.7.4. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hold back encoding change which is messing up patch. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 ** 2013 November 25
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.
10 **
11 ******************************************************************************
12 **
13 ** This file contains code that is specific to Windows.
14 */
15 #ifndef _OS_WIN_H_
16 #define _OS_WIN_H_
17
18 /*
19 ** Include the primary Windows SDK header file.
20 */
21 #include "windows.h"
22
23 #ifdef __CYGWIN__
24 # include <sys/cygwin.h>
25 # include <errno.h> /* amalgamator: dontcache */
26 #endif
27
28 /*
29 ** Determine if we are dealing with Windows NT.
30 **
31 ** We ought to be able to determine if we are compiling for Windows 9x or
32 ** Windows NT using the _WIN32_WINNT macro as follows:
33 **
34 ** #if defined(_WIN32_WINNT)
35 ** # define SQLITE_OS_WINNT 1
36 ** #else
37 ** # define SQLITE_OS_WINNT 0
38 ** #endif
39 **
40 ** However, Visual Studio 2005 does not set _WIN32_WINNT by default, as
41 ** it ought to, so the above test does not work. We'll just assume that
42 ** everything is Windows NT unless the programmer explicitly says otherwise
43 ** by setting SQLITE_OS_WINNT to 0.
44 */
45 #if SQLITE_OS_WIN && !defined(SQLITE_OS_WINNT)
46 # define SQLITE_OS_WINNT 1
47 #endif
48
49 /*
50 ** Determine if we are dealing with Windows CE - which has a much reduced
51 ** API.
52 */
53 #if defined(_WIN32_WCE)
54 # define SQLITE_OS_WINCE 1
55 #else
56 # define SQLITE_OS_WINCE 0
57 #endif
58
59 /*
60 ** Determine if we are dealing with WinRT, which provides only a subset of
61 ** the full Win32 API.
62 */
63 #if !defined(SQLITE_OS_WINRT)
64 # define SQLITE_OS_WINRT 0
65 #endif
66
67 /*
68 ** For WinCE, some API function parameters do not appear to be declared as
69 ** volatile.
70 */
71 #if SQLITE_OS_WINCE
72 # define SQLITE_WIN32_VOLATILE
73 #else
74 # define SQLITE_WIN32_VOLATILE volatile
75 #endif
76
77 #endif /* _OS_WIN_H_ */
OLDNEW
« no previous file with comments | « third_party/sqlite/sqlite-src-3080704/src/os_unix.c ('k') | third_party/sqlite/sqlite-src-3080704/src/os_win.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698