From 78e022fbdda3c4d49bf5c051f8eea618b2a671e6 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Thu, 9 May 2024 00:15:25 +0200 Subject: [PATCH] fixed compiler warning --- src/game_bd/bd_random.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/game_bd/bd_random.c b/src/game_bd/bd_random.c index fc7998cb..b40ee4fc 100644 --- a/src/game_bd/bd_random.c +++ b/src/game_bd/bd_random.c @@ -40,11 +40,14 @@ #include #include +#include "main_bd.h" + #if defined(PLATFORM_WINDOWS) #include // 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" /** -- 2.34.1