mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-03-03 17:08:31 +08:00
Simplify header
This commit is contained in:
@@ -84,8 +84,10 @@ AC_SUBST(SQL)
|
|||||||
AC_SUBST(LFLAGS)
|
AC_SUBST(LFLAGS)
|
||||||
|
|
||||||
CFLAGS="$CFLAGS -Wall -Werror"
|
CFLAGS="$CFLAGS -Wall -Werror"
|
||||||
|
LOCALE_T=locale_t
|
||||||
AS_CASE([$host],
|
AS_CASE([$host],
|
||||||
[*mingw*|*cygwin*], [LDFLAGS="$LDFLAGS -no-undefined"], [])
|
[*mingw*|*cygwin*], [LDFLAGS="$LDFLAGS -no-undefined" LOCALE_T=_locale_t], [])
|
||||||
|
AC_SUBST(LOCALE_T)
|
||||||
|
|
||||||
dnl See if iconv is present and wanted
|
dnl See if iconv is present and wanted
|
||||||
AC_ARG_ENABLE(iconv,
|
AC_ARG_ENABLE(iconv,
|
||||||
|
|||||||
@@ -65,13 +65,10 @@
|
|||||||
// M$VC see http://stackoverflow.com/questions/1113409/attribute-constructor-equivalent-in-vc
|
// M$VC see http://stackoverflow.com/questions/1113409/attribute-constructor-equivalent-in-vc
|
||||||
#define MDB_DEPRECATED(type, funcname) type __attribute__((deprecated)) funcname
|
#define MDB_DEPRECATED(type, funcname) type __attribute__((deprecated)) funcname
|
||||||
|
|
||||||
#if defined(_WIN32) || defined(WIN32) || defined(_WIN64) || defined(WIN64) || defined(WINDOWS)
|
#if !MDBTOOLS_H_HAVE_ICONV_H
|
||||||
typedef _locale_t mdb_locale_t;
|
typedef @LOCALE_T@ mdb_locale_t;
|
||||||
#else
|
|
||||||
typedef locale_t mdb_locale_t;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
MDB_PAGE_DB = 0,
|
MDB_PAGE_DB = 0,
|
||||||
MDB_PAGE_DATA,
|
MDB_PAGE_DATA,
|
||||||
|
|||||||
Reference in New Issue
Block a user