dbus-glib on windows

Fridrich Strba fridrich.strba at bluewin.ch
Sun Apr 25 09:01:13 PDT 2010


Hello,

Since we have the discussion about dbus on windows, here is my last
remaining issue with dbus-glib build on windows: 1) AC_CANONICAL_TARGET
is for cross-tools, here we need AC_CANONICAL_HOST if we don't want all
the *.exe installed prefixed with the cpu-vendor-os triplet.
2) The test-profile needs some porting love since as it is, it is unix
only. For the while I just produce a dummy test so that the build does
not go south. 3) An argument named "interface" is in a header is not the
best thing, because windows.h defines (for the purposes of DCOM)
interface as class for C++ and as struct for C. This is eventually
something to keep in mind generally so that one's code is likely to be
more portable. In some cases this kind of things can be worked around
using some defines and udefs, but sometimes it takes quite a long time
to realize which file sucks the windows.h in and avoiding to have to
work it around is the most efficient way to go.

Attached is the quick patch.

Cheers

Fridrich
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dbus-glib.diff
Type: text/x-patch
Size: 3237 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20100425/90e852ed/attachment.bin>


More information about the dbus mailing list