grand: Only use rand_s() when targetting Visual Studio >= 2005
authorSebastian Dröge <sebastian@centricular.com>
Sat, 13 Sep 2014 13:31:03 +0000 (16:31 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 15 Sep 2014 19:25:08 +0000 (22:25 +0300)
commitbb6a77afa328f16568a41b26de75f255dcfc9daf
tree4b1342fb246818588a5c7756e21ca6ae28796418
parentf2b5edb6527e5bdde6f9e9c6771556308d0ea027
grand: Only use rand_s() when targetting Visual Studio >= 2005

It did not exist before. Fall back to the current time plus
process id on older targets. This makes GLib work again on
Windows XP.

https://bugzilla.gnome.org/show_bug.cgi?id=736458
glib/grand.c