Don't try to use rand_s on CYGWIN
authorJanne Blomqvist <jb@gcc.gnu.org>
Mon, 27 Feb 2017 11:13:49 +0000 (13:13 +0200)
committerJanne Blomqvist <jb@gcc.gnu.org>
Mon, 27 Feb 2017 11:13:49 +0000 (13:13 +0200)
commit9449b700197b1d120d194cefe294f44460c0adab
treea7433a4ff626cf6ecfe26b62ade74373c9bcc0d4
parent57fa080bf6c0ae01bf1643a87e72ca636bde0454
Don't try to use rand_s on CYGWIN

CYGWIN seems to include _mingw.h and thus __MINGW64_VERSION_MAJOR is
defined even though rand_s is not available. Thus add an extra check
for __CYGWIN__.

2017-02-27  Janne Blomqvist  <jb@gcc.gnu.org>

* intrinsics/random.c (getosrandom): Don't try to use rand_s on
CYGWIN.

From-SVN: r245755
libgfortran/ChangeLog
libgfortran/intrinsics/random.c