From 18e7dc021591bcaedb922a553d5bc0e0b966b6d9 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Fri, 6 Oct 2000 21:43:25 +0000 Subject: [PATCH] Fix the Win32-only code to use current API, 2000-10-06 Tor Lillqvist * tests/gio-test.c (main): Fix the Win32-only code to use current API, g_io_channel_win32_make_pollfd() and g_io_channel_win32_poll(). --- ChangeLog | 3 +++ ChangeLog.pre-2-0 | 3 +++ ChangeLog.pre-2-10 | 3 +++ ChangeLog.pre-2-12 | 3 +++ ChangeLog.pre-2-2 | 3 +++ ChangeLog.pre-2-4 | 3 +++ ChangeLog.pre-2-6 | 3 +++ ChangeLog.pre-2-8 | 3 +++ tests/gio-test.c | 4 +++- tests/makefile.msc.in | 2 ++ 10 files changed, 29 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 39a208d..88f87d7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,9 @@ * glib.def: Add new entry point. + * tests/gio-test.c (main): Fix the Win32-only code to use current + API, g_io_channel_win32_make_pollfd() and g_io_channel_win32_poll(). + Fixes from Hans Breuer: * glib.h (struct DIR): Keep the last readdir result cached inside diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 39a208d..88f87d7 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -16,6 +16,9 @@ * glib.def: Add new entry point. + * tests/gio-test.c (main): Fix the Win32-only code to use current + API, g_io_channel_win32_make_pollfd() and g_io_channel_win32_poll(). + Fixes from Hans Breuer: * glib.h (struct DIR): Keep the last readdir result cached inside diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 39a208d..88f87d7 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -16,6 +16,9 @@ * glib.def: Add new entry point. + * tests/gio-test.c (main): Fix the Win32-only code to use current + API, g_io_channel_win32_make_pollfd() and g_io_channel_win32_poll(). + Fixes from Hans Breuer: * glib.h (struct DIR): Keep the last readdir result cached inside diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 39a208d..88f87d7 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -16,6 +16,9 @@ * glib.def: Add new entry point. + * tests/gio-test.c (main): Fix the Win32-only code to use current + API, g_io_channel_win32_make_pollfd() and g_io_channel_win32_poll(). + Fixes from Hans Breuer: * glib.h (struct DIR): Keep the last readdir result cached inside diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 39a208d..88f87d7 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -16,6 +16,9 @@ * glib.def: Add new entry point. + * tests/gio-test.c (main): Fix the Win32-only code to use current + API, g_io_channel_win32_make_pollfd() and g_io_channel_win32_poll(). + Fixes from Hans Breuer: * glib.h (struct DIR): Keep the last readdir result cached inside diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 39a208d..88f87d7 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -16,6 +16,9 @@ * glib.def: Add new entry point. + * tests/gio-test.c (main): Fix the Win32-only code to use current + API, g_io_channel_win32_make_pollfd() and g_io_channel_win32_poll(). + Fixes from Hans Breuer: * glib.h (struct DIR): Keep the last readdir result cached inside diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 39a208d..88f87d7 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -16,6 +16,9 @@ * glib.def: Add new entry point. + * tests/gio-test.c (main): Fix the Win32-only code to use current + API, g_io_channel_win32_make_pollfd() and g_io_channel_win32_poll(). + Fixes from Hans Breuer: * glib.h (struct DIR): Keep the last readdir result cached inside diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 39a208d..88f87d7 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -16,6 +16,9 @@ * glib.def: Add new entry point. + * tests/gio-test.c (main): Fix the Win32-only code to use current + API, g_io_channel_win32_make_pollfd() and g_io_channel_win32_poll(). + Fixes from Hans Breuer: * glib.h (struct DIR): Keep the last readdir result cached inside diff --git a/tests/gio-test.c b/tests/gio-test.c index f0c087e..f95bf5a 100644 --- a/tests/gio-test.c +++ b/tests/gio-test.c @@ -222,6 +222,7 @@ main (int argc, int i; #ifdef G_OS_WIN32 GTimeVal start, end; + GPollFD pollfd; int pollresult; #endif @@ -268,7 +269,8 @@ main (int argc, #ifdef G_OS_WIN32 g_get_current_time (&start); - pollresult = g_io_channel_win32_wait_for_condition (my_read_channel, G_IO_IN, 100); + g_io_channel_win32_make_pollfd (my_read_channel, G_IO_IN, &pollfd); + pollresult = g_io_channel_win32_poll (&pollfd, 1, 100); g_get_current_time (&end); if (end.tv_usec < start.tv_usec) end.tv_sec--, end.tv_usec += 1000000; diff --git a/tests/makefile.msc.in b/tests/makefile.msc.in index eecee8d..445df1b 100644 --- a/tests/makefile.msc.in +++ b/tests/makefile.msc.in @@ -19,6 +19,7 @@ TESTS = \ array-test.exe \ date-test.exe \ dirname-test.exe\ + gio-test.exe \ hash-test.exe \ list-test.exe \ node-test.exe \ @@ -26,6 +27,7 @@ TESTS = \ rand-test.exe \ relation-test.exe\ slist-test.exe \ +# strfunc-test doesn't compile with MSVC # strfunc-test.exe\ string-test.exe \ thread-test.exe \ -- 2.7.4