fixed compiler warning
[rocksndiamonds.git] / src / game_bd / bd_random.c
index fc7998cbdb936718bac7321286d647c7e1722bfa..b40ee4fc43a12758e3964501a4f5c2d3ba107da2 100644 (file)
 #include <unistd.h>
 #include <time.h>
 
+#include "main_bd.h"
+
 #if defined(PLATFORM_WINDOWS)
 #include <process.h>   // for getpid()
+#if (defined(_MSC_VER) && _MSC_VER >= 1400) || defined(__MINGW64_VERSION_MAJOR)
+extern errno_t rand_s (unsigned int *randomValue);
+#endif
 #endif
-
-#include "main_bd.h"
 
 
 /**