projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f808929
)
fixed compiler warning
author
Holger Schemel
<info@artsoft.org>
Wed, 8 May 2024 22:15:25 +0000
(
00:15
+0200)
committer
Holger Schemel
<info@artsoft.org>
Wed, 8 May 2024 22:34:40 +0000
(
00:34
+0200)
src/game_bd/bd_random.c
patch
|
blob
|
history
diff --git
a/src/game_bd/bd_random.c
b/src/game_bd/bd_random.c
index fc7998cbdb936718bac7321286d647c7e1722bfa..b40ee4fc43a12758e3964501a4f5c2d3ba107da2 100644
(file)
--- a/
src/game_bd/bd_random.c
+++ b/
src/game_bd/bd_random.c
@@
-40,11
+40,14
@@
#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"
/**