Re: GLib and 64-bit Windows



Are you sure?

$ cat intptr.c
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <windows.h>

#define SIZE(x) printf(#x ": %d\n", sizeof(x))

int
main(int argc, char **argv)
{
   SIZE(intptr_t);
   SIZE(uintptr_t);
   return 0;
}

$ ./intptr.exe
intptr_t: 8
uintptr_t: 8


Jonathan Chambers wrote:
Very unfortunately no. You can use the capital case windows defines, INT_PTR, etc, or ship a version of <stdint.h> to use in VS (http://www.azillionmonkeys.com/qed/pstdint.h <http://www.azillionmonkeys.com/qed/pstdint.h>).

- Jonathan

On 3/5/07, *Tor Lillqvist* <tml iki fi <mailto:tml iki fi>> wrote:

    > It's almost like there should be a full-width type, one that is
    32 bits
    > on a 32-bit platform, and 64 bits on 64-bit.

    intptr_t and uintptr_t? Does the current MS compiler have <stdint.h>?

    --tml
    _______________________________________________
    gtk-devel-list mailing list
    gtk-devel-list gnome org <mailto:gtk-devel-list gnome org>
    http://mail.gnome.org/mailman/listinfo/gtk-devel-list


------------------------------------------------------------------------

_______________________________________________
gtk-devel-list mailing list
gtk-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

--

JAKE GOULDING
Software Engineer
goulding vivisimo com

Viv�imo [Search Done Right�]
1710 Murray Avenue
Pittsburgh, PA 15217 USA
tel: +1.412.422.2499 x105
fax: +1.412.422.2495
vivisimo.com      clusty.com




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]