Version: 1.0.0
database/wxprec.h
Go to the documentation of this file.
1 #ifndef _WX_DATABASE_WXPREC_H_
2 #define _WX_DATABASE_WXPREC_H_
3 
4 #ifndef _WINSOCKAPI_
5 #define _WINSOCKAPI_
6 #endif
7 
8 #include "wx/wxprec.h"
9 
10 #if defined(_DEBUG) && defined(_MSC_VER)
11  #include <crtdbg.h>
12  #define debug_normal_new new(_NORMAL_BLOCK ,__FILE__, __LINE__)
13  #define debug_ignore_new new(_IGNORE_BLOCK ,__FILE__, __LINE__)
14 #else
15  #define debug_normal_new new
16  #define debug_ignore_new new
17 #endif
18 
19 #include "wx/database/setup.h"
20 #include "wx/database/dlimpexp.h"
21 
22 #include "wx/hashset.h"
23 
26 #include "wx/database/errorcodes.h"
27 #include "wx/database/exception.h"
29 
31 #include "wx/database/resultset.h"
33 
34 #include "wx/database/database.h"
35 
36 #if defined(WXMAKINGDLL_DATABASE) || defined(WXMAKINGLIB_DATABASE)
37 
38 #if wxUSE_DATABASE_SQLITE
39  #include <sqlite3.h>
44 #endif
45 #if wxUSE_DATABASE_POSTGRESQL
46  #include "libpq-fe.h"
47  #include "libpq/libpq-fs.h"
56 #endif
57 
58 #if wxUSE_DATABASE_MYSQL
59 /*
60  * Work around missing definition of SOCKET in mingw headers
61 */
62 #if defined(__WXMSW__) && !defined(_MSC_VER)
63  #include <psdk_inc/_socket_types.h>
64 #endif
65 
66  #include <mysql.h>
67  #include <errmsg.h>
77 #endif
78 #if wxUSE_DATABASE_ODBC
79  #include <sql.h>
80  #include <sqlext.h>
87 #endif
88 #if wxUSE_DATABASE_TDS
89  #include <freetds/tds.h>
90  #include <freetds/convert.h>
96 #endif
97 
98 #endif//defined(WXMAKINGDLL_DATABASE) || defined(WXMAKINGLIB_DATABASE)
99 
100 #endif//_WX_DATABASE_WXPREC_H_