Commit 8ceb47f3 authored by Olivier Crête's avatar Olivier Crête 👻

examples: Use the correct g_io_channel_win32_new_fd() function

parent 63f53d40
......@@ -125,7 +125,7 @@ example_thread(void *data)
gchar *sdp, *sdp64;
#ifdef G_OS_WIN32
io_stdin = g_io_channel_win32_new(_fileno(stdin));
io_stdin = g_io_channel_win32_new_fd(_fileno(stdin));
#else
io_stdin = g_io_channel_unix_new(fileno(stdin));
#endif
......
......@@ -113,7 +113,7 @@ main(int argc, char *argv[])
gloop = g_main_loop_new(NULL, FALSE);
#ifdef G_OS_WIN32
io_stdin = g_io_channel_win32_new(_fileno(stdin));
io_stdin = g_io_channel_win32_new_fd(_fileno(stdin));
#else
io_stdin = g_io_channel_unix_new(fileno(stdin));
#endif
......
......@@ -136,7 +136,7 @@ example_thread(void *data)
int rval;
#ifdef G_OS_WIN32
io_stdin = g_io_channel_win32_new(_fileno(stdin));
io_stdin = g_io_channel_win32_new_fd(_fileno(stdin));
#else
io_stdin = g_io_channel_unix_new(fileno(stdin));
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment