Skip to content

Commit

Permalink
oslib-win32: do not rely on macro to get redefined function name
Browse files Browse the repository at this point in the history
On Windows with glib <2.50, g_poll is redefined to use the variant
defined in util/oslib-win32.c.  Use the same name in the declaration
and definition for ease of grepping.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
bonzini committed May 4, 2021
1 parent e93d8bc commit 62cbfdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/oslib-win32.c
Expand Up @@ -472,7 +472,7 @@ static int poll_rest(gboolean poll_msgs, HANDLE *handles, gint nhandles,
return 0;
}

gint g_poll(GPollFD *fds, guint nfds, gint timeout)
gint g_poll_fixed(GPollFD *fds, guint nfds, gint timeout)
{
HANDLE handles[MAXIMUM_WAIT_OBJECTS];
gboolean poll_msgs = FALSE;
Expand Down

0 comments on commit 62cbfdd

Please sign in to comment.