configure: Don't define _WIN64 on the command line to avoid trouble with system headers.
This commit is contained in:
parent
1b8c98d35d
commit
9abd8852dd
|
@ -23497,37 +23497,6 @@ if test $ac_cv_cpp_def___x86_64__ = yes; then
|
|||
CFLAGS="$CFLAGS -D__x86_64__"
|
||||
LINTFLAGS="$LINTFLAGS -D__x86_64__"
|
||||
fi
|
||||
|
||||
{ echo "$as_me:$LINENO: checking whether we need to define _WIN64" >&5
|
||||
echo $ECHO_N "checking whether we need to define _WIN64... $ECHO_C" >&6; }
|
||||
if test "${ac_cv_cpp_def__WIN64+set}" = set; then
|
||||
echo $ECHO_N "(cached) $ECHO_C" >&6
|
||||
else
|
||||
cat >conftest.$ac_ext <<_ACEOF
|
||||
/* confdefs.h. */
|
||||
_ACEOF
|
||||
cat confdefs.h >>conftest.$ac_ext
|
||||
cat >>conftest.$ac_ext <<_ACEOF
|
||||
/* end confdefs.h. */
|
||||
#ifndef _WIN64
|
||||
yes
|
||||
#endif
|
||||
_ACEOF
|
||||
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
||||
$EGREP "yes" >/dev/null 2>&1; then
|
||||
ac_cv_cpp_def__WIN64=yes
|
||||
else
|
||||
ac_cv_cpp_def__WIN64=no
|
||||
fi
|
||||
rm -f conftest*
|
||||
|
||||
fi
|
||||
{ echo "$as_me:$LINENO: result: $ac_cv_cpp_def__WIN64" >&5
|
||||
echo "${ECHO_T}$ac_cv_cpp_def__WIN64" >&6; }
|
||||
if test $ac_cv_cpp_def__WIN64 = yes; then
|
||||
CFLAGS="$CFLAGS -D_WIN64"
|
||||
LINTFLAGS="$LINTFLAGS -D_WIN64"
|
||||
fi
|
||||
;;
|
||||
*alpha*) { echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
|
||||
echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6; }
|
||||
|
|
|
@ -1431,8 +1431,7 @@ dnl *** check for the need to define platform-specific symbols
|
|||
|
||||
case $host_cpu in
|
||||
*i[[3456789]]86*) WINE_CHECK_DEFINE([__i386__]) ;;
|
||||
*x86_64*) WINE_CHECK_DEFINE([__x86_64__])
|
||||
WINE_CHECK_DEFINE([_WIN64]) ;;
|
||||
*x86_64*) WINE_CHECK_DEFINE([__x86_64__]) ;;
|
||||
*alpha*) WINE_CHECK_DEFINE([__ALPHA__]) ;;
|
||||
*sparc*) WINE_CHECK_DEFINE([__sparc__]) ;;
|
||||
*powerpc*) WINE_CHECK_DEFINE([__powerpc__]) ;;
|
||||
|
|
|
@ -26,6 +26,10 @@ typedef unsigned short wchar_t;
|
|||
#define __int64 long long
|
||||
#endif
|
||||
|
||||
#if defined(__x86_64__) && !defined(_WIN64)
|
||||
#define _WIN64
|
||||
#endif
|
||||
|
||||
#ifndef _SIZE_T_DEFINED
|
||||
#ifdef _WIN64
|
||||
typedef unsigned __int64 size_t;
|
||||
|
|
|
@ -38,6 +38,10 @@
|
|||
#define __int64 long long
|
||||
#endif
|
||||
|
||||
#if defined(__x86_64__) && !defined(_WIN64)
|
||||
#define _WIN64
|
||||
#endif
|
||||
|
||||
#ifndef _SIZE_T_DEFINED
|
||||
#ifdef _WIN64
|
||||
typedef unsigned __int64 size_t;
|
||||
|
|
|
@ -27,6 +27,10 @@
|
|||
#define __int64 long long
|
||||
#endif
|
||||
|
||||
#if defined(__x86_64__) && !defined(_WIN64)
|
||||
#define _WIN64
|
||||
#endif
|
||||
|
||||
#ifndef _SIZE_T_DEFINED
|
||||
#ifdef _WIN64
|
||||
typedef unsigned __int64 size_t;
|
||||
|
|
|
@ -27,6 +27,10 @@
|
|||
#define __int64 long long
|
||||
#endif
|
||||
|
||||
#if defined(__x86_64__) && !defined(_WIN64)
|
||||
#define _WIN64
|
||||
#endif
|
||||
|
||||
#ifndef _SIZE_T_DEFINED
|
||||
#ifdef _WIN64
|
||||
typedef unsigned __int64 size_t;
|
||||
|
|
|
@ -23,6 +23,10 @@
|
|||
#define __WINE_USE_MSVCRT
|
||||
#endif
|
||||
|
||||
#if defined(__x86_64__) && !defined(_WIN64)
|
||||
#define _WIN64
|
||||
#endif
|
||||
|
||||
#ifndef _WCHAR_T_DEFINED
|
||||
#define _WCHAR_T_DEFINED
|
||||
#ifndef __cplusplus
|
||||
|
|
|
@ -19,6 +19,10 @@
|
|||
#define __int64 long long
|
||||
#endif
|
||||
|
||||
#if defined(__x86_64__) && !defined(_WIN64)
|
||||
#define _WIN64
|
||||
#endif
|
||||
|
||||
/* file._flag flags */
|
||||
#define _IOREAD 0x0001
|
||||
#define _IOWRT 0x0002
|
||||
|
|
|
@ -18,10 +18,12 @@ typedef unsigned short wchar_t;
|
|||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef _MSC_VER
|
||||
# ifndef __int64
|
||||
# define __int64 long long
|
||||
# endif
|
||||
#if !defined(_MSC_VER) && !defined(__int64)
|
||||
#define __int64 long long
|
||||
#endif
|
||||
|
||||
#if defined(__x86_64__) && !defined(_WIN64)
|
||||
#define _WIN64
|
||||
#endif
|
||||
|
||||
#ifndef _SIZE_T_DEFINED
|
||||
|
|
|
@ -27,6 +27,10 @@
|
|||
#define __int64 long long
|
||||
#endif
|
||||
|
||||
#if defined(__x86_64__) && !defined(_WIN64)
|
||||
#define _WIN64
|
||||
#endif
|
||||
|
||||
#ifndef _DEV_T_DEFINED
|
||||
typedef unsigned int _dev_t;
|
||||
#define _DEV_T_DEFINED
|
||||
|
|
|
@ -34,6 +34,10 @@ typedef unsigned short wchar_t;
|
|||
#define __int64 long long
|
||||
#endif
|
||||
|
||||
#if defined(__x86_64__) && !defined(_WIN64)
|
||||
#define _WIN64
|
||||
#endif
|
||||
|
||||
#ifndef _SIZE_T_DEFINED
|
||||
#ifdef _WIN64
|
||||
typedef unsigned __int64 size_t;
|
||||
|
|
|
@ -39,6 +39,10 @@ typedef unsigned short wchar_t;
|
|||
#define __int64 long long
|
||||
#endif
|
||||
|
||||
#if defined(__x86_64__) && !defined(_WIN64)
|
||||
#define _WIN64
|
||||
#endif
|
||||
|
||||
typedef int mbstate_t;
|
||||
|
||||
#ifndef _SIZE_T_DEFINED
|
||||
|
|
Loading…
Reference in New Issue