Define HAVE_RAND_S if _MSC_VER >= 1400.
diff --git a/config.h_win32vc7 b/config.h_win32vc7
index b6ae0a7..44e6696 100644
--- a/config.h_win32vc7
+++ b/config.h_win32vc7
@@ -1,5 +1,9 @@
 /* Hacked config.h for Windows XP 32-bit & VC7  */
 
+#ifdef (_MSC_VER >= 1400)
+# define HAVE_RAND_S	1
+#endif
+
 /* Define if building for a CISC machine (e.g. Intel). */
 #define CPU_CISC 1