mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
Fix build.
svn path=/trunk/; revision=16045
This commit is contained in:
@@ -9,14 +9,13 @@
|
||||
#include <winbase.h>
|
||||
#include <winnt.h>
|
||||
|
||||
#include <msvcrt/crttypes.h>
|
||||
#include <stddef.h>
|
||||
|
||||
typedef struct _ThreadData
|
||||
{
|
||||
int terrno; /* *nix error code */
|
||||
unsigned long tdoserrno; /* Win32 error code (for I/O only) */
|
||||
unsigned LONGLONG tnext; /* used by rand/srand */
|
||||
unsigned __int64 tnext; /* used by rand/srand */
|
||||
|
||||
char *lasttoken; /* used by strtok */
|
||||
wchar_t *wlasttoken; /* used by wcstok */
|
||||
|
||||
@@ -11,11 +11,7 @@ rand(void)
|
||||
{
|
||||
PTHREADDATA ThreadData = GetThreadData();
|
||||
|
||||
#ifdef HAVE_LONGLONG
|
||||
ThreadData->tnext = ThreadData->tnext * 0x5deece66dLL + 11;
|
||||
#else
|
||||
ThreadData->tnext = ThreadData->tnext * 0x5deece66dL + 11;
|
||||
#endif
|
||||
return (int)((ThreadData->tnext >> 16) & RAND_MAX);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user