mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-04-05 20:31:00 +08:00
Simplify header
This commit is contained in:
parent
d3eea5f38e
commit
00d597b6d3
@ -84,8 +84,10 @@ AC_SUBST(SQL)
|
||||
AC_SUBST(LFLAGS)
|
||||
|
||||
CFLAGS="$CFLAGS -Wall -Werror"
|
||||
LOCALE_T=locale_t
|
||||
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
|
||||
AC_ARG_ENABLE(iconv,
|
||||
|
@ -65,13 +65,10 @@
|
||||
// M$VC see http://stackoverflow.com/questions/1113409/attribute-constructor-equivalent-in-vc
|
||||
#define MDB_DEPRECATED(type, funcname) type __attribute__((deprecated)) funcname
|
||||
|
||||
#if defined(_WIN32) || defined(WIN32) || defined(_WIN64) || defined(WIN64) || defined(WINDOWS)
|
||||
typedef _locale_t mdb_locale_t;
|
||||
#else
|
||||
typedef locale_t mdb_locale_t;
|
||||
#if !MDBTOOLS_H_HAVE_ICONV_H
|
||||
typedef @LOCALE_T@ mdb_locale_t;
|
||||
#endif
|
||||
|
||||
|
||||
enum {
|
||||
MDB_PAGE_DB = 0,
|
||||
MDB_PAGE_DATA,
|
||||
|
Loading…
Reference in New Issue
Block a user