Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members  

odbc++/config-win32.h

00001 #if !defined(__ODBCXX_SETUP_H)
00002 # error "Do not include this file directly. Use <odbc++/setup.h> instead"
00003 #endif
00004 
00005 #define ODBCXX_HAVE_SQL_H
00006 #define ODBCXX_HAVE_SQLEXT_H
00007 
00008 #define ODBCXX_HAVE_CSTDIO
00009 #define ODBCXX_HAVE_CSTDLIB
00010 #define ODBCXX_HAVE_CSTRING
00011 #define ODBCXX_HAVE_CTIME
00012 #define ODBCXX_HAVE_IOSTREAM
00013 #define ODBCXX_HAVE_STRSTREAM
00014 #define ODBCXX_HAVE_SET
00015 #define ODBCXX_HAVE_VECTOR
00016 
00017 
00018 #define ODBCXX_ENABLE_THREADS
00019 
00020 #if defined(_MSC_VER)
00021 // MSVC has a rather compliant CXX lib
00022 # define ODBCXX_HAVE_ISO_CXXLIB
00023 
00024 # define ODBCXX_HAVE__ITOA
00025 # define ODBCXX_HAVE__STRICMP
00026 # define ODBCXX_HAVE__SNPRINTF
00027 
00028 # define ODBCXX_HAVE__I64TOA
00029 # define ODBCXX_HAVE__ATOI64
00030 # define ODBCXX_HAVE__ATOI
00031 
00032 // disable the 'identifier name truncated in debug info' warning
00033 # pragma warning(disable:4786)
00034 
00035 // disable the 'class blah blah should be exported' warning
00036 // don't know if this is dangerous, but it only whines about templated
00037 // and/or inlined classes and it really bothers me =)
00038 # if defined(ODBCXX_DLL)
00039 #  pragma warning(disable:4251)
00040 # endif
00041 
00042 #endif // _MSC_VER
00043 
00044 
00045 
00046 #if defined(__BORLANDC__)
00047 
00048 // FIXME: this should check for older versions
00049 # define ODBCXX_HAVE_ISO_CXXLIB
00050 
00051 # if !defined(_RWSTD_NO_EX_SPEC)
00052 #  define _RWSTD_NO_EX_SPEC 1
00053 # endif
00054 // sql.h only defines this for msc, but borland has __int64 as well
00055 # if !defined(ODBCINT64)
00056 #  define ODBCINT64 __int64
00057 # endif
00058 
00059 # define ODBCXX_HAVE_ITOA 1
00060 # define ODBCXX_HAVE_STRICMP 1
00061 
00062 #endif // __BORLANDC__
00063 
00064 
00065 #if defined(__MINGW32__)
00066 
00067 // the MS runtime has those
00068 # if defined(__MSVCRT__)
00069 #  define ODBCXX_HAVE__I64TOA
00070 #  define ODBCXX_HAVE__ATOI64
00071 # endif
00072 
00073 #define ODBCXX_HAVE__ITOA
00074 #define ODBCXX_HAVE__STRICMP
00075 
00076 #define ODBCXX_HAVE__SNPRINTF
00077 
00078 // same as with borland
00079 # if !defined(ODBCINT64)
00080 #  define ODBCINT64 __int64
00081 # endif
00082 
00083 #endif // __MINGW32__
00084 
00085 #define WIN32_LEAN_AND_MEAN
00086 #include <windows.h>

Go back to the freeodbc++ homepage