* ser-mingw.c (ser_windows_close): Reformat comment to better conform

to GNU coding standards.
This commit is contained in:
Pierre Muller 2011-02-21 13:40:32 +00:00
parent 4af53f973a
commit e25b2cfa2a
2 changed files with 10 additions and 6 deletions

View file

@ -1,8 +1,12 @@
2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
* ser-mingw.c (ser_windows_close): Reformat comment to better conform
to GNU coding standards.
2011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
Allow use of mingw native on Windows 95 OS.
* src/gdb/ser-mingw.c (CancelIo): New macro for dynamically loaded
DLL entry.
* ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
(ser_windows_close): Only call CancelIo if function exists.
(_initialize_ser_windows): Use LoadLirary/GetProcAddress
to check for existence of CancelIo function in kernel32 DLL.

View file

@ -221,10 +221,10 @@ ser_windows_close (struct serial *scb)
{
struct ser_windows_state *state;
/* Stop any pending selects. On Windows 95 OS, CancelIo function does not
exist. In that case, it can be replaced by a call to CloseHandle, but
this is not necessary here as we do close the Windows handle by calling
close (scb->fd) below. */
/* Stop any pending selects. On Windows 95 OS, CancelIo function does
not exist. In that case, it can be replaced by a call to CloseHandle,
but this is not necessary here as we do close the Windows handle
by calling close (scb->fd) below. */
if (CancelIo)
CancelIo ((HANDLE) _get_osfhandle (scb->fd));
state = scb->state;