Windows x64 support
Fridrich Strba
fridrich.strba at bluewin.ch
Thu Apr 29 04:27:50 PDT 2010
Yeah, as I said, this patch is more a base of discussion. Because it
changes some things in cross-platform and unix code too.
The exact stdint.h is surely problem in my headerset (mingw-w64). Maybe
something like this:
--- a/dbus/dbus-pipe.h
+++ b/dbus/dbus-pipe.h
@@ -25,6 +25,14 @@
#ifndef DBUS_PIPE_H
#define DBUS_PIPE_H
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
+
#include <dbus/dbus-types.h>
#include <dbus/dbus-errors.h>
#include <dbus/dbus-string.h>
--- a/dbus/dbus-types.h
+++ b/dbus/dbus-types.h
@@ -28,7 +28,6 @@
#define DBUS_TYPES_H
#include <stddef.h>
-#include <stdint.h>
#include <dbus/dbus-arch-deps.h>
typedef dbus_uint32_t dbus_unichar_t;
Could keep the goat satisfied and the cabbage whole?
Cheers
Fridrich
On Thu, 2010-04-29 at 13:03 +0200, Ralf Habacker wrote:
> Fridrich Strba schrieb:
> > Hello, good people,
> >
> > This is not a definite proposal. Just one of the ways to not truncate
> > pointers for windows 64-bits. I built it also on linux x86_64 and run
> > make check and it looks ok.
> >
> > I would appreciate you commenting on this one.
> >
> I get compile errors on msvc 2008
>
> diff --git a/dbus/dbus-types.h b/dbus/dbus-types.h
> index 54f348f..0f2bbb9 100644
> --- a/dbus/dbus-types.h
> +++ b/dbus/dbus-types.h
> @@ -28,6 +28,7 @@
> #define DBUS_TYPES_H
>
> #include <stddef.h>
> +#include <stdint.h>
> #include <dbus/dbus-arch-deps.h>
>
> stdint.h is not available on msvc < 2010
>
>
>
> dbus could be compiled on msvc 2008 without problems without stdint.h
>
>
> Regards
> Ralf
>
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>
More information about the dbus
mailing list