mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-11-08 18:45:00 +08:00
Move Unicode ODBC functions to separate file (remove ODBC's iconv)
Use wcstombs and friends to perform Unicode conversion inside the ODBC driver. Functionality should be identical as before, except that installations without iconv will now be able to compile and install the Unicode (libmdbodbcW) driver. iconv remains present in the main libmdb library.
This commit is contained in:
@@ -38,7 +38,9 @@
|
||||
|
||||
#if MDBTOOLS_H_HAVE_ICONV_H
|
||||
#include <iconv.h>
|
||||
#elif MDBTOOLS_H_HAVE_XLOCALE_H
|
||||
#endif
|
||||
|
||||
#if MDBTOOLS_H_HAVE_XLOCALE_H
|
||||
#include <xlocale.h>
|
||||
#endif
|
||||
|
||||
@@ -65,9 +67,7 @@
|
||||
// M$VC see http://stackoverflow.com/questions/1113409/attribute-constructor-equivalent-in-vc
|
||||
#define MDB_DEPRECATED(type, funcname) type __attribute__((deprecated)) funcname
|
||||
|
||||
#if !MDBTOOLS_H_HAVE_ICONV_H
|
||||
typedef @LOCALE_T@ mdb_locale_t;
|
||||
#endif
|
||||
|
||||
enum {
|
||||
MDB_PAGE_DB = 0,
|
||||
|
||||
Reference in New Issue
Block a user