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:
Evan Miller
2021-08-23 13:39:39 -04:00
parent 00d597b6d3
commit 0164b4df1a
7 changed files with 318 additions and 318 deletions

View File

@@ -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,