mirror of
https://github.com/mdbtools/mdbtools.git
synced 2025-09-20 02:57:55 +08:00
More Windows fixes
This commit is contained in:
@@ -63,7 +63,7 @@ AC_SUBST(LFLAGS)
|
|||||||
|
|
||||||
CFLAGS="$CFLAGS -Wall -Wstrict-prototypes"
|
CFLAGS="$CFLAGS -Wall -Wstrict-prototypes"
|
||||||
AS_CASE([$host],
|
AS_CASE([$host],
|
||||||
[*mingw*|*cygwin*], [LDFLAGS="$LDFLAGS -no-undefined"], [])
|
[*mingw*|*cygwin*], [LDFLAGS="$LDFLAGS -no-undefined -lWs2_32"], [])
|
||||||
dnl Enable -Wl,--as-needed by default to prevent overlinking
|
dnl Enable -Wl,--as-needed by default to prevent overlinking
|
||||||
|
|
||||||
AC_ARG_ENABLE([as-needed],
|
AC_ARG_ENABLE([as-needed],
|
||||||
|
@@ -4,6 +4,7 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
// for ntohl
|
// for ntohl
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
@@ -1,7 +1,6 @@
|
|||||||
|
|
||||||
#include "mdbfakeglib.h"
|
#include "mdbfakeglib.h"
|
||||||
|
|
||||||
#include <string.h>
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
@@ -23,6 +23,10 @@
|
|||||||
#include "dmalloc.h"
|
#include "dmalloc.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef MIN
|
||||||
|
#define MIN(a,b) (a>b ? b : a)
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This function is used in reading text data from an MDB table.
|
* This function is used in reading text data from an MDB table.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user