Windows x64 support

Thiago Macieira thiago at kde.org
Thu Apr 29 10:05:06 PDT 2010


Em Quinta-feira 29 Abril 2010, às 13:03:49, Ralf Habacker escreveu:
> 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

stdint.h is a C99 header, which Microsoft hasn't really decided to support. 
How about inttypes.h?

For others reading: Windows 64-bit is has 32-bit longs and 64-bit long longs 
(__int64 actually), hence the need for the patch.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20100429/697d0b85/attachment.pgp>


More information about the dbus mailing list