OLD | NEW |
1 /* | 1 /* |
2 ** 2013 November 25 | 2 ** 2013 November 25 |
3 ** | 3 ** |
4 ** The author disclaims copyright to this source code. In place of | 4 ** The author disclaims copyright to this source code. In place of |
5 ** a legal notice, here is a blessing: | 5 ** a legal notice, here is a blessing: |
6 ** | 6 ** |
7 ** May you do good and not evil. | 7 ** May you do good and not evil. |
8 ** May you find forgiveness for yourself and forgive others. | 8 ** May you find forgiveness for yourself and forgive others. |
9 ** May you share freely, never taking more than you give. | 9 ** May you share freely, never taking more than you give. |
10 ** | 10 ** |
11 ****************************************************************************** | 11 ****************************************************************************** |
12 ** | 12 ** |
13 ** This file contains code that is specific to Windows. | 13 ** This file contains code that is specific to Windows. |
14 */ | 14 */ |
15 #ifndef _OS_WIN_H_ | 15 #ifndef SQLITE_OS_WIN_H |
16 #define _OS_WIN_H_ | 16 #define SQLITE_OS_WIN_H |
17 | 17 |
18 /* | 18 /* |
19 ** Include the primary Windows SDK header file. | 19 ** Include the primary Windows SDK header file. |
20 */ | 20 */ |
21 #include "windows.h" | 21 #include "windows.h" |
22 | 22 |
23 #ifdef __CYGWIN__ | 23 #ifdef __CYGWIN__ |
24 # include <sys/cygwin.h> | 24 # include <sys/cygwin.h> |
25 # include <errno.h> /* amalgamator: dontcache */ | 25 # include <errno.h> /* amalgamator: dontcache */ |
26 #endif | 26 #endif |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 ** For some Windows sub-platforms, the _beginthreadex() / _endthreadex() | 78 ** For some Windows sub-platforms, the _beginthreadex() / _endthreadex() |
79 ** functions are not available (e.g. those not using MSVC, Cygwin, etc). | 79 ** functions are not available (e.g. those not using MSVC, Cygwin, etc). |
80 */ | 80 */ |
81 #if SQLITE_OS_WIN && !SQLITE_OS_WINCE && !SQLITE_OS_WINRT && \ | 81 #if SQLITE_OS_WIN && !SQLITE_OS_WINCE && !SQLITE_OS_WINRT && \ |
82 SQLITE_THREADSAFE>0 && !defined(__CYGWIN__) | 82 SQLITE_THREADSAFE>0 && !defined(__CYGWIN__) |
83 # define SQLITE_OS_WIN_THREADS 1 | 83 # define SQLITE_OS_WIN_THREADS 1 |
84 #else | 84 #else |
85 # define SQLITE_OS_WIN_THREADS 0 | 85 # define SQLITE_OS_WIN_THREADS 0 |
86 #endif | 86 #endif |
87 | 87 |
88 #endif /* _OS_WIN_H_ */ | 88 #endif /* SQLITE_OS_WIN_H */ |
OLD | NEW |