-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.hpp.in
More file actions
146 lines (122 loc) · 3.88 KB
/
config.hpp.in
File metadata and controls
146 lines (122 loc) · 3.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
/// @file config.hpp
///
/// @date 10.03.2010 09:36
///
/// @author T. Schröder ([email protected])
///
/// @brief
///
/// This file is part of the sqlite-wrapper project
#ifndef SQLITE_WRAPPER_CONFIG_HPP_INCLUDED
#define SQLITE_WRAPPER_CONFIG_HPP_INCLUDED
#cmakedefine SQLITE_WRAPPER_HAVE_VARIADIC_TEMPLATES
#cmakedefine SQLITE_WRAPPER_HAVE_POSIX
#cmakedefine SQLITE_WRAPPER_HAVE_ATLEAST_UINT64
#cmakedefine SQLITE_WRAPPER_HAVE_DEFAULTED_AND_DELETED_FUNCTIONS
#cmakedefine SQLITE_WRAPPER_NARROW_STRING
#cmakedefine SQLITE_WRAPPER_HAVE_CLOCK_GETTIME
#cmakedefine SQLITE_WRAPPER_STRING_IS_UTF8
#cmakedefine SQLITE_WRAPPER_HAS_GNU_DEMANGLE
#cmakedefine SQLITE_WRAPPER_HAVE_GCC_PRAGMA_MESSAGE
#ifdef _WIN32
#define SQLITE_WRAPPER_WINDOWS_PLATFORM 1
#elif defined(SQLITE_WRAPPER_HAVE_POSIX)
#define SQLITE_WRAPPER_POSIX_PLATFORM 1
#ifdef __APPLE__
#define SQLITE_WRAPPER_DARWIN_PLATFORM
#endif
#endif
//#ifndef SQLITE_WRAPPER_USE
// #define SQLITE_WRAPPER_USE 1
//#endif
#define SQLITE_WRAPPER_VERSION_MAJOR @SQLITE_WRAPPER_VERSION_MAJOR @
#define SQLITE_WRAPPER__VERSION_MINOR @SQLITE_WRAPPER_VERSION_MINOR @
#ifdef __GNUC__
#cmakedefine SQLITE_WRAPPER_HAVE_GCC_VISIBILITY
#endif
//#ifndef SQLITE_WRAPPER_STATIC
//# include <sqlite_wrapper/private_assemblies.hpp>
//#endif
#include <string>
#include <vector>
#include <map>
#include <iosfwd>
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#if defined(WIN32) || defined(WIN64)
#include <windows.h>
#ifdef max
#undef max
#endif
#ifdef min
#undef min
#endif
#endif
#include <boost/format.hpp>
#ifndef BOOST_NO_STD_LOCALE
#include <boost/signals.hpp>
namespace sigb = boost::BOOST_SIGNALS_NAMESPACE;
#endif
#ifndef _tcsstr
#ifdef _UNICODE
#define _tcsstr wcsstr
#else
#define _tcsstr strstr
#endif // _UNICODE
#endif
#ifdef SQLITE_WRAPPER_HEADER_ONLY
#define SQLITE_WRAPPER_INLINE inline
#else
#define SQLITE_WRAPPER_INLINE
#endif
#ifdef SQLITE_WRAPPER_SHARED
#if defined(WIN32) || defined(WIN64)
#ifdef sqlite_wrapper_EXPORTS
#define SQLITE_WRAPPER_DLLAPI __declspec(dllexport)
#else
#define SQLITE_WRAPPER_DLLAPI __declspec(dllimport)
#endif
#else
#define SQLITE_WRAPPER_DLLAPI
#endif
#else
#define SQLITE_WRAPPER_DLLAPI
#endif
namespace db {
#ifdef SQLITE_WRAPPER_NARROW_STRING
typedef char char_type;
/// Generic text macros to be used with string literals and character constants.
/// Will also allow symbolic constants that resolve to same.
#define DB_TEXT(x) x
#else
using char_type = wchar_t;
/// Generic text macros to be used with string literals and character constants.
/// Will also allow symbolic constants that resolve to same.
#define DB_TEXT(x) L##x
#endif
/*! Creates a type name for db::string */
typedef std::basic_string< char_type > string;
/*! Creates a type name for db::ostream */
typedef std::basic_ostream< char_type > ostream;
/*! Creates a type name for db::istream */
typedef std::basic_istream< char_type > istream;
/*! Creates a type name for db::ofstream */
using ofstream = std::basic_ofstream< char_type, std::char_traits< char_type > >;
/*! Creates a type name for db::ifstream */
using ifstream = std::basic_ifstream< char_type, std::char_traits< char_type > >;
/*! Creates a type name for db::ostringstream */
typedef std::basic_ostringstream< char_type > ostringstream;
/*! Creates a type name for db::istringstream */
typedef std::basic_istringstream< char_type > istringstream;
/*! Creates a type name for db::stringstream */
typedef std::basic_stringstream< char_type > stringstream;
/*! Creates a type name for db::format */
typedef boost::basic_format< char_type > format;
/*! Creates a type name for db::string_pair */
using string_pair = std::pair< string, string >;
/*! Creates a type name for db::string_vec */
typedef std::vector< string > string_vec;
} // namespace db
#endif