fixed compiler warning
authorHolger Schemel <info@artsoft.org>
Wed, 8 May 2024 22:15:25 +0000 (00:15 +0200)
committerHolger Schemel <info@artsoft.org>
Wed, 8 May 2024 22:34:40 +0000 (00:34 +0200)
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"
 
 
 /**