Don't try to use rand_s on CYGWIN
commit1ff3ef783c6e43e69a3fc909379406237ee4911d
authorjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Feb 2017 11:13:49 +0000 (27 11:13 +0000)
committerjb <jb@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Feb 2017 11:13:49 +0000 (27 11:13 +0000)
treea7433a4ff626cf6ecfe26b62ade74373c9bcc0d4
parent12420a15c2f638f8e65b76a46a37f59bda8670dc
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@245755 138bc75d-0d04-0410-961f-82ee72b054a4
libgfortran/ChangeLog
libgfortran/intrinsics/random.c