Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
58c64190
Commit
58c64190
authored
Jul 10, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Define _WIN64 when building on a 64-bit platform.
parent
94529273
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
3 deletions
+42
-3
configure
configure
+31
-0
configure.ac
configure.ac
+2
-1
basetsd.h
include/basetsd.h
+1
-1
windef.h
include/windef.h
+1
-1
winegcc.c
tools/winegcc/winegcc.c
+7
-0
No files found.
configure
View file @
58c64190
...
...
@@ -24167,6 +24167,37 @@ 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
;
}
...
...
configure.ac
View file @
58c64190
...
...
@@ -1502,7 +1502,8 @@ 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__]) ;;
*x86_64*) WINE_CHECK_DEFINE([__x86_64__])
WINE_CHECK_DEFINE([_WIN64]) ;;
*alpha*) WINE_CHECK_DEFINE([__ALPHA__]) ;;
*sparc*) WINE_CHECK_DEFINE([__sparc__]) ;;
*powerpc*) WINE_CHECK_DEFINE([__powerpc__]) ;;
...
...
include/basetsd.h
View file @
58c64190
...
...
@@ -38,7 +38,7 @@ extern "C" {
* type model where int and long are 32 bit and pointer is 64-bit.
*/
#if
def __x86_64__
#if
defined(__x86_64__) && !defined(_WIN64)
#define _WIN64
#endif
...
...
include/windef.h
View file @
58c64190
...
...
@@ -45,7 +45,7 @@ extern "C" {
# define __i386__
#endif
#if
def __x86_64__
#if
defined(__x86_64__) && !defined(_WIN64)
#define _WIN64
#endif
...
...
tools/winegcc/winegcc.c
View file @
58c64190
...
...
@@ -269,10 +269,17 @@ static void compile(struct options* opts, const char* lang)
strarray_addall
(
comp_args
,
strarray_fromstring
(
DLLFLAGS
,
" "
));
}
#ifdef _WIN64
strarray_add
(
comp_args
,
"-DWIN64"
);
strarray_add
(
comp_args
,
"-D_WIN64"
);
strarray_add
(
comp_args
,
"-D__WIN64"
);
strarray_add
(
comp_args
,
"-D__WIN64__"
);
#else
strarray_add
(
comp_args
,
"-DWIN32"
);
strarray_add
(
comp_args
,
"-D_WIN32"
);
strarray_add
(
comp_args
,
"-D__WIN32"
);
strarray_add
(
comp_args
,
"-D__WIN32__"
);
#endif
strarray_add
(
comp_args
,
"-D__WINNT"
);
strarray_add
(
comp_args
,
"-D__WINNT__"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment