forked from Ports/perfect_dark
port: rename random to rngRandom to avoid conflicts with libc
This commit is contained in:
1 parent
d747588323
commit
06dcbcc1b1
55 files changed
+459
-459
No files matched your search
@@ -63,7 +63,7 @@
|
||||
#define LINEHEIGHT (VERSION == VERSION_JPN_FINAL ? 14 : 11)
|
||||
#define MIXCOLOUR(dialog, property) dialog->transitionfrac < 0.0f ? g_MenuColours[dialog->type].property : colourBlend(g_MenuColours[dialog->type2].property, g_MenuColours[dialog->type].property, dialog->colourweight)
|
||||
#define MPCHR(index) ((index) < MAX_PLAYERS ? &g_PlayerConfigsArray[index].base : &g_BotConfigsArray[(index) - MAX_PLAYERS].base)
|
||||
#define RANDOMFRAC() (random() * (1.0f / U32_MAX))
|
||||
#define RANDOMFRAC() (rngRandom() * (1.0f / U32_MAX))
|
||||
#define SECSTOTIME240(secs) (secs * 240)
|
||||
#define SECSTOTIME60(secs) (secs * 60)
|
||||
#define PFS(device) (device == SAVEDEVICE_GAMEPAK ? NULL : &g_Pfses[device])
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include "data.h"
|
||||
#include "types.h"
|
||||
|
||||
u32 random(void);
|
||||
u32 rngRandom(void);
|
||||
u32 rngRotateSeed(u64 *value);
|
||||
|
||||
#endif
|
||||
Reference in new issue
Block a user