changeset 24138:cba01f5dc3aa

Hack around broken bitfields in gcc 4.2
author reimar
date Sat, 25 Aug 2007 07:35:35 +0000
parents 46d7af639861
children a76d37951a43
files input/input.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/input/input.c	Sat Aug 25 07:30:17 2007 +0000
+++ b/input/input.c	Sat Aug 25 07:35:35 2007 +0000
@@ -609,7 +609,8 @@
   cmd_fds[num_cmd_fd].fd = fd;
   cmd_fds[num_cmd_fd].read_func = read_func ? read_func : mp_input_default_cmd_func;
   cmd_fds[num_cmd_fd].close_func = close_func;
-  cmd_fds[num_cmd_fd].no_select = !select;
+  if (!select)
+    cmd_fds[num_cmd_fd].no_select = 1;
   num_cmd_fd++;
 
   return 1;
@@ -668,7 +669,8 @@
   key_fds[num_key_fd].fd = fd;
   key_fds[num_key_fd].read_func = read_func;
   key_fds[num_key_fd].close_func = close_func;
-  key_fds[num_key_fd].no_select = !select;
+  if (!select)
+    key_fds[num_key_fd].no_select = 1;
   num_key_fd++;
 
   return 1;