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
75e40229
Commit
75e40229
authored
Apr 16, 2008
by
Kusanagi Kouichi
Committed by
Alexandre Julliard
Apr 16, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Fix Solaris build error.
Solaris doesn't define XICCallback.
parent
6165d87f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
129 additions
and
9 deletions
+129
-9
configure
configure
+109
-0
configure.ac
configure.ac
+6
-0
xim.c
dlls/winex11.drv/xim.c
+11
-9
config.h.in
include/config.h.in
+3
-0
No files found.
configure
View file @
75e40229
...
...
@@ -10686,6 +10686,115 @@ esac
fi
{
echo
"
$as_me
:
$LINENO
: checking for XICCallback.callback"
>
&5
echo
$ECHO_N
"checking for XICCallback.callback...
$ECHO_C
"
>
&6
;
}
if
test
"
${
ac_cv_member_XICCallback_callback
+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. */
#ifdef HAVE_X11_XLIB_H
#include <X11/Xlib.h>
#endif
int
main ()
{
static XICCallback ac_aggr;
if (ac_aggr.callback)
return 0;
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
if
{
(
ac_try
=
"
$ac_compile
"
case
"((
$ac_try
"
in
*
\"
*
|
*
\`
*
|
*
\\
*
)
ac_try_echo
=
\$
ac_try
;;
*
)
ac_try_echo
=
$ac_try
;;
esac
eval
"echo
\"\$
as_me:
$LINENO
:
$ac_try_echo
\"
"
)
>
&5
(
eval
"
$ac_compile
"
)
2>conftest.er1
ac_status
=
$?
grep
-v
'^ *+'
conftest.er1
>
conftest.err
rm
-f
conftest.er1
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
test
-z
"
$ac_c_werror_flag
"
||
test
!
-s
conftest.err
}
&&
test
-s
conftest.
$ac_objext
;
then
ac_cv_member_XICCallback_callback
=
yes
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
cat
>
conftest.
$ac_ext
<<
_ACEOF
/* confdefs.h. */
_ACEOF
cat
confdefs.h
>>
conftest.
$ac_ext
cat
>>
conftest.
$ac_ext
<<
_ACEOF
/* end confdefs.h. */
#ifdef HAVE_X11_XLIB_H
#include <X11/Xlib.h>
#endif
int
main ()
{
static XICCallback ac_aggr;
if (sizeof ac_aggr.callback)
return 0;
;
return 0;
}
_ACEOF
rm
-f
conftest.
$ac_objext
if
{
(
ac_try
=
"
$ac_compile
"
case
"((
$ac_try
"
in
*
\"
*
|
*
\`
*
|
*
\\
*
)
ac_try_echo
=
\$
ac_try
;;
*
)
ac_try_echo
=
$ac_try
;;
esac
eval
"echo
\"\$
as_me:
$LINENO
:
$ac_try_echo
\"
"
)
>
&5
(
eval
"
$ac_compile
"
)
2>conftest.er1
ac_status
=
$?
grep
-v
'^ *+'
conftest.er1
>
conftest.err
rm
-f
conftest.er1
cat
conftest.err
>
&5
echo
"
$as_me
:
$LINENO
:
\$
? =
$ac_status
"
>
&5
(
exit
$ac_status
)
;
}
&&
{
test
-z
"
$ac_c_werror_flag
"
||
test
!
-s
conftest.err
}
&&
test
-s
conftest.
$ac_objext
;
then
ac_cv_member_XICCallback_callback
=
yes
else
echo
"
$as_me
: failed program was:"
>
&5
sed
's/^/| /'
conftest.
$ac_ext
>
&5
ac_cv_member_XICCallback_callback
=
no
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
fi
rm
-f
core conftest.err conftest.
$ac_objext
conftest.
$ac_ext
fi
{
echo
"
$as_me
:
$LINENO
: result:
$ac_cv_member_XICCallback_callback
"
>
&5
echo
"
${
ECHO_T
}
$ac_cv_member_XICCallback_callback
"
>
&6
;
}
if
test
$ac_cv_member_XICCallback_callback
=
yes
;
then
cat
>>
confdefs.h
<<
_ACEOF
#define HAVE_XICCALLBACK_CALLBACK 1
_ACEOF
fi
opengl_msg
=
""
if
test
"x
$with_opengl
"
!=
"xno"
...
...
configure.ac
View file @
75e40229
...
...
@@ -698,6 +698,12 @@ then
WINE_NOTICE_WITH(xcomposite,[test "x$ac_cv_lib_soname_Xcomposite" = "x"],
[libxcomposite development files not found, Xcomposite won't be supported.])
dnl *** Check for XICCallback struct
AC_CHECK_MEMBERS([XICCallback.callback],,,
[#ifdef HAVE_X11_XLIB_H
#include <X11/Xlib.h>
#endif])
dnl *** End of X11/Xlib.h check
dnl Check for the presence of OpenGL
...
...
dlls/winex11.drv/xim.c
View file @
75e40229
...
...
@@ -35,6 +35,11 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
x11drv
);
#ifndef HAVE_XICCALLBACK_CALLBACK
#define XICCallback XIMCallback
#define XICProc XIMProc
#endif
BOOL
ximInComposeMode
=
FALSE
;
/* moved here from imm32 for dll separation */
...
...
@@ -501,11 +506,8 @@ XIC X11DRV_CreateIC(XIM xim, struct x11drv_win_data *data)
XVaNestedList
preedit
=
NULL
;
XVaNestedList
status
=
NULL
;
XIC
xic
;
XICCallback
destroy
=
{(
XPointer
)
data
,
X11DRV_DestroyIC
};
XIMCallback
P_StartCB
;
XIMCallback
P_DoneCB
;
XIMCallback
P_DrawCB
;
XIMCallback
P_CaretCB
;
XICCallback
destroy
=
{(
XPointer
)
data
,
(
XICProc
)
X11DRV_DestroyIC
};
XICCallback
P_StartCB
,
P_DoneCB
,
P_DrawCB
,
P_CaretCB
;
LANGID
langid
=
PRIMARYLANGID
(
LANGIDFROMLCID
(
GetThreadLocale
()));
Window
win
=
data
->
whole_window
;
...
...
@@ -531,13 +533,13 @@ XIC X11DRV_CreateIC(XIM xim, struct x11drv_win_data *data)
/* create callbacks */
P_StartCB
.
client_data
=
NULL
;
P_StartCB
.
callback
=
(
XIMProc
)
XIMPreEditStartCallback
;
P_DoneCB
.
client_data
=
NULL
;
P_DoneCB
.
callback
=
(
XIMProc
)
XIMPreEditDoneCallback
;
P_DrawCB
.
client_data
=
NULL
;
P_DrawCB
.
callback
=
(
XIMProc
)
XIMPreEditDrawCallback
;
P_CaretCB
.
client_data
=
NULL
;
P_CaretCB
.
callback
=
(
XIMProc
)
XIMPreEditCaretCallback
;
P_StartCB
.
callback
=
(
XICProc
)
XIMPreEditStartCallback
;
P_DoneCB
.
callback
=
(
XICProc
)
XIMPreEditDoneCallback
;
P_DrawCB
.
callback
=
(
XICProc
)
XIMPreEditDrawCallback
;
P_CaretCB
.
callback
=
(
XICProc
)
XIMPreEditCaretCallback
;
if
((
ximStyle
&
(
XIMPreeditNothing
|
XIMPreeditNone
))
==
0
)
{
...
...
include/config.h.in
View file @
75e40229
...
...
@@ -945,6 +945,9 @@
/* Define to 1 if you have the <X11/Xutil.h> header file. */
#undef HAVE_X11_XUTIL_H
/* Define to 1 if `callback' is member of `XICCallback'. */
#undef HAVE_XICCALLBACK_CALLBACK
/* Define if you have the XKB extension */
#undef HAVE_XKB
...
...
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