Prepare for potential Win64 build: Use gint64 for the fd field on Win64,
authorTor Lillqvist <tml@novell.com>
Mon, 15 Jan 2007 02:28:01 +0000 (02:28 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Mon, 15 Jan 2007 02:28:01 +0000 (02:28 +0000)
2007-01-15  Tor Lillqvist  <tml@novell.com>

* glib/gmain.h (struct _GPollFD): Prepare for potential Win64
build: Use gint64 for the fd field on Win64, as we want to be able
to store a HANDLE in it. (#395422) (Other changes will surely also
be necessary when building on Win64, at least in gwin32.c.)

svn path=/trunk/; revision=5260

ChangeLog
glib/gmain.h

index 85e0808b022be9d9588dad72789ed5dcf7f0deca..4871859de68958915817a0822ae7f3adef59d8fa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-01-15  Tor Lillqvist  <tml@novell.com>
+
+       * glib/gmain.h (struct _GPollFD): Prepare for potential Win64
+       build: Use gint64 for the fd field on Win64, as we want to be able
+       to store a HANDLE in it. (#395422) (Other changes will surely also
+       be necessary when building on Win64, at least in gwin32.c.)
+
 2007-01-15  Tor Lillqvist  <tml@novell.com>
 
        * glib/gwin32.c (g_win32_getlocale): Simplify greatly. Instead of
index 8e8dd3fe409701da0a1e5b200bda4b7ab9c5d838..39f9515551ff55659954200e1d28c0491aa324bb 100644 (file)
@@ -120,7 +120,11 @@ typedef gint       (*GPollFunc)    (GPollFD *ufds,
 
 struct _GPollFD
 {
+#ifdef G_OS_WIN32 && GLIB_SIZEOF_VOID_P == 8
+  gint64       fd;
+#else
   gint         fd;
+#endif
   gushort      events;
   gushort      revents;
 };