Don't use Win32 functions on CYGWIN.
authorNightStrike <nightstrike@gmail.com>
Wed, 15 Mar 2017 13:46:35 +0000 (13:46 +0000)
committerJanne Blomqvist <jb@gcc.gnu.org>
Wed, 15 Mar 2017 13:46:35 +0000 (15:46 +0200)
commitadd5b95a4adf7055bb079debd6607c7454d8081d
tree517eb9e810d1d4db823a6e3c2112b664dc8f89ec
parent05f659104f5fde40aa10588c4036e71963adbb33
Don't use Win32 functions on CYGWIN.

This was a workaround for a cygwin bug which was fixed 4 years ago,
and cygwin hasn't supported affected versions for a long time.

2017-03-15  NightStrike  <nightstrike@gmail.com>
    Janne Blomqvist  <jb@gcc.gnu.org>

* intrinsics/random.c (getosrandom): Remove check for __CYGWIN__
preprocessor flag.
* intrinsics/system_clock.c: Likewise.
(system_clock_4): Likewise.
(system_clock_8): Likewise.
* intrinsics/time_1.h: Don't include windows.h if __CYGWIN__ is
defined.

Co-Authored-By: Janne Blomqvist <jb@gcc.gnu.org>
From-SVN: r246162
libgfortran/ChangeLog
libgfortran/intrinsics/random.c
libgfortran/intrinsics/system_clock.c
libgfortran/intrinsics/time_1.h