Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
fdac5e57
Commit
fdac5e57
authored
Sep 12, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
Oct 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Check for ms_hook_prologue attribute support.
parent
55b3a9c9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
0 deletions
+56
-0
configure
configure
+38
-0
configure.ac
configure.ac
+15
-0
config.h.in
include/config.h.in
+3
-0
No files found.
configure
View file @
fdac5e57
...
...
@@ -11702,6 +11702,44 @@ if test $ac_cv_cflags__Werror = yes; then :
EXTRACFLAGS
=
"
$EXTRACFLAGS
-Werror"
fi
fi
saved_CFLAGS
=
"
$CFLAGS
"
CFLAGS
=
"
$CFLAGS
-Werror"
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking for ms_hook_prologue attribute"
>
&5
$as_echo_n
"checking for ms_hook_prologue attribute... "
>
&6
;
}
if
test
"
${
ac_cv_have_ms_hook_prologue
+set
}
"
=
set
;
then
:
$as_echo_n
"(cached) "
>
&6
else
cat
confdefs.h -
<<
_ACEOF
>conftest.
$ac_ext
/* end confdefs.h. */
int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
int
main ()
{
;
return 0;
}
_ACEOF
if
ac_fn_c_try_compile
"
$LINENO
"
;
then
:
ac_cv_have_ms_hook_prologue
=
"yes"
else
ac_cv_have_ms_hook_prologue
=
"no"
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
fi
{
$as_echo
"
$as_me
:
${
as_lineno
-
$LINENO
}
: result:
$ac_cv_have_ms_hook_prologue
"
>
&5
$as_echo
"
$ac_cv_have_ms_hook_prologue
"
>
&6
;
}
CFLAGS
=
"
$saved_CFLAGS
"
if
test
"
$ac_cv_have_ms_hook_prologue
"
=
"yes"
then
$as_echo
"#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))"
>>
confdefs.h
else
$as_echo
"#define DECLSPEC_HOTPATCH /* */"
>>
confdefs.h
fi
fi
...
...
configure.ac
View file @
fdac5e57
...
...
@@ -1505,6 +1505,21 @@ then
then
WINE_TRY_CFLAGS([-Werror])
fi
dnl Check for ms_hook_prologue support
saved_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS -Werror"
AC_CACHE_CHECK([for ms_hook_prologue attribute], ac_cv_have_ms_hook_prologue,
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }]])],
[ac_cv_have_ms_hook_prologue="yes"],[ac_cv_have_ms_hook_prologue="no"]))
CFLAGS="$saved_CFLAGS"
if test "$ac_cv_have_ms_hook_prologue" = "yes"
then
AC_DEFINE(DECLSPEC_HOTPATCH, [__attribute__((__ms_hook_prologue__))],
[Define to a function attribute for Microsoft hotpatch assembly prefix.])
else
AC_DEFINE(DECLSPEC_HOTPATCH, [/* */])
fi
fi
dnl **** Check for underscore on external symbols ****
...
...
include/config.h.in
View file @
fdac5e57
...
...
@@ -2,6 +2,9 @@
#define __WINE_CONFIG_H
/* Define to a function attribute for Microsoft hotpatch assembly prefix. */
#undef DECLSPEC_HOTPATCH
/* Define to the file extension for executables. */
#undef EXEEXT
...
...
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