interplane.Get Omega
Read in your language

sqlite

[Ported from github.com/sqlite/sqlite] Fix bugs in and improve the interface to the ".check" command of the CLI.

Brought by drakestapleton

branch master Branches Tags History

sqlite / src / os_win.h

40 lines · 1094 bytes Raw Blame History
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 SQLITE_OS_WIN_H
16#define SQLITE_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 <sys/stat.h> /* amalgamator: dontcache */
26# include <unistd.h> /* amalgamator: dontcache */
27# include <errno.h> /* amalgamator: dontcache */
28#endif
29
30/*
31** For some Windows sub-platforms, the _beginthreadex() / _endthreadex()
32** functions are not available (e.g. those not using MSVC, Cygwin, etc).
33*/
34#if SQLITE_OS_WIN && SQLITE_THREADSAFE>0 && !defined(__CYGWIN__)
35# define SQLITE_OS_WIN_THREADS 1
36#else
37# define SQLITE_OS_WIN_THREADS 0
38#endif
39
40#endif /* SQLITE_OS_WIN_H */