mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-01-21 18:48:34 +08:00
Remove HAVE_ macros from mdbtools.h and mdbsql.h
Generate mdbtools.h at configure-time. This ensures that the public interface matches the compiled structures. See #316
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
include_HEADERS = mdbtools.h mdbsql.h
|
||||
EXTRA_DIST = mdbtools.h.in
|
||||
include_HEADERS = mdbtools.h
|
||||
if SQL
|
||||
include_HEADERS += mdbsql.h
|
||||
endif
|
||||
if FAKE_GLIB
|
||||
include_HEADERS += mdbfakeglib.h
|
||||
endif
|
||||
|
||||
@@ -25,11 +25,6 @@
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#ifdef HAVE_GLIB
|
||||
#include <glib.h>
|
||||
#else
|
||||
#include <mdbfakeglib.h>
|
||||
#endif
|
||||
#include <mdbtools.h>
|
||||
|
||||
typedef struct MdbSQL
|
||||
|
||||
@@ -30,19 +30,9 @@
|
||||
#include <unistd.h>
|
||||
#include <ctype.h>
|
||||
#include <string.h>
|
||||
#include <locale.h>
|
||||
|
||||
#ifdef HAVE_GLIB
|
||||
#include <glib.h>
|
||||
#else
|
||||
#include <mdbfakeglib.h>
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_ICONV)
|
||||
#include <iconv.h>
|
||||
#elif defined(HAVE_XLOCALE_H)
|
||||
#include <xlocale.h>
|
||||
#endif
|
||||
#include <@ICONV_INCLUDE_HEADER@>
|
||||
#include <@LOCALE_INCLUDE_HEADER@>
|
||||
#include <@GLIB_INCLUDE_HEADER@>
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <io.h>
|
||||
@@ -308,10 +298,9 @@ typedef struct {
|
||||
char *relationships_values[5];
|
||||
MdbStatistics *stats;
|
||||
GHashTable *backends;
|
||||
#ifdef HAVE_ICONV
|
||||
iconv_t iconv_in;
|
||||
iconv_t iconv_out;
|
||||
#elif defined(_WIN32) || defined(WIN32) || defined(_WIN64) || defined(WIN64) || defined(WINDOWS)
|
||||
@ICONV_TYPE@ iconv_in;
|
||||
@ICONV_TYPE@ iconv_out;
|
||||
#if defined(_WIN32) || defined(WIN32) || defined(_WIN64) || defined(WIN64) || defined(WINDOWS)
|
||||
_locale_t locale;
|
||||
#else
|
||||
locale_t locale;
|
||||
Reference in New Issue
Block a user