From: Linus Torvalds Date: Sun, 27 Nov 2011 20:07:49 +0000 (-0800) Subject: Merge branch 'windows-fixes' of git://git.hohndel.org/subsurface X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=ee68ada729837162e29d879ca408836d0d66c7ac;hp=19356de24620c75c26152c5f19947c8a1e5215cb;p=ext%2Fsubsurface.git Merge branch 'windows-fixes' of git://git.hohndel.org/subsurface * 'windows-fixes' of git://git.hohndel.org/subsurface: fix mingw-win32 specific warnings in libdivecomputer.c Fix mingw-make.sh to find correct xslt-config --- diff --git a/libdivecomputer.c b/libdivecomputer.c index b1c86c5..9d4c106 100644 --- a/libdivecomputer.c +++ b/libdivecomputer.c @@ -1,5 +1,7 @@ #include #include +#include +#include #include "dive.h" #include "divelist.h" @@ -433,8 +435,8 @@ static void event_cb(device_t *device, device_event_t event, const void *data, v break; case DEVICE_EVENT_CLOCK: devdata->clock = *clock; - printf("Event: systime=%lld, devtime=%u\n", - clock->systime, clock->devtime); + printf("Event: systime=%"PRId64", devtime=%u\n", + (uint64_t)clock->systime, clock->devtime); break; default: break; diff --git a/packaging/windows/mingw-make.sh b/packaging/windows/mingw-make.sh index 79e7ad5..ec1f6cc 100755 --- a/packaging/windows/mingw-make.sh +++ b/packaging/windows/mingw-make.sh @@ -6,7 +6,9 @@ # the paths work for the default mingw32 install on OpenSUSE - adjust as # necessary +export PATH=/usr/i686-w64-mingw32/sys-root/mingw/bin:$PATH make CC=i686-w64-mingw32-gcc \ PKGCONFIG=i686-w64-mingw32-pkg-config \ PKG_CONFIG_PATH=/usr/i686-w64-mingw32/sys-root/i686-w64-mingw32/lib/pkgconfig/ \ + XSLTCONFIG=/usr/i686-w64-mingw32/sys-root/mingw/bin/xslt-config \ XML2CONFIG=/usr/i686-w64-mingw32/sys-root/mingw/bin/xml2-config NAME=subsurface.exe