libodbc++  0.2.5
config-win32.h
1 #if !defined(__ODBCXX_SETUP_H)
2 # error "Do not include this file directly. Use <odbc++/setup.h> instead"
3 #endif
4 
5 #include <sstream>
6 
7 #define ODBCXX_HAVE_SQL_H
8 #define ODBCXX_HAVE_SQLEXT_H
9 #define ODBCXX_HAVE_SQLUCODE_H
10 
11 #define ODBCXX_HAVE_CSTDIO
12 #define ODBCXX_HAVE_CSTDLIB
13 #define ODBCXX_HAVE_CSTRING
14 #define ODBCXX_HAVE_CTIME
15 #define ODBCXX_HAVE_IOSTREAM
16 #define ODBCXX_HAVE_SSTREAM
17 #define ODBCXX_HAVE_SET
18 #define ODBCXX_HAVE_VECTOR
19 
20 
21 #define ODBCXX_ENABLE_THREADS
22 
23 #if defined(_MSC_VER)
24 // MSVC has a rather compliant CXX lib
25 # define ODBCXX_HAVE_ISO_CXXLIB
26 
27 # define ODBCXX_HAVE__ITOA
28 # define ODBCXX_HAVE__STRICMP
29 # define ODBCXX_HAVE__SNPRINTF
30 
31 # define ODBCXX_HAVE__I64TOA
32 # define ODBCXX_HAVE__ATOI64
33 # define ODBCXX_HAVE__ATOI
34 
35 // disable the 'identifier name truncated in debug info' warning
36 # pragma warning(disable:4786)
37 
38 // disable the 'class blah blah should be exported' warning
39 // don't know if this is dangerous, but it only whines about templated
40 // and/or inlined classes and it really bothers me =)
41 # if defined(ODBCXX_DLL)
42 # pragma warning(disable:4251)
43 # endif
44 
45 # if _MSC_VER <= 1200
46 # define ODBCXX_NO_STD_TIME_T
47 # endif
48 
49 #endif // _MSC_VER
50 
51 
52 
53 #if defined(__BORLANDC__)
54 
55 // FIXME: this should check for older versions
56 # define ODBCXX_HAVE_ISO_CXXLIB
57 
58 # if !defined(_RWSTD_NO_EX_SPEC)
59 # define _RWSTD_NO_EX_SPEC 1
60 # endif
61 // sql.h only defines this for msc, but borland has __int64 as well
62 # if !defined(ODBCINT64)
63 # define ODBCINT64 __int64
64 # endif
65 
66 # define ODBCXX_HAVE_ITOA 1
67 # define ODBCXX_HAVE_STRICMP 1
68 
69 #endif // __BORLANDC__
70 
71 
72 #if defined(__MINGW32__)
73 
74 // the MS runtime has those
75 # if defined(__MSVCRT__)
76 # define ODBCXX_HAVE__I64TOA
77 # define ODBCXX_HAVE__ATOI64
78 # endif
79 
80 #define ODBCXX_HAVE__ITOA
81 #define ODBCXX_HAVE__STRICMP
82 
83 #define ODBCXX_HAVE__SNPRINTF
84 
85 // same as with borland
86 # if !defined(ODBCINT64)
87 # define ODBCINT64 __int64
88 # endif
89 
90 #endif // __MINGW32__
91 
92 #define WIN32_LEAN_AND_MEAN
93 
94 #if defined(ODBCXX_UNICODE)
95 # if !defined(_UNICODE)
96 # define _UNICODE
97 # endif
98 # if defined(_MBCS)
99 # undef _MBCS
100 # endif
101 #endif
102 
103 #include <windows.h>
104 
105 #if defined(GUID_DEFINED)
106  #define ODBCXX_HAVE_STRUCT_GUID
107 #endif

Go back to the libodbc++ homepage