Fix build.

svn path=/trunk/; revision=16045
This commit is contained in:
Filip Navara
2005-06-18 15:50:23 +00:00
parent 7bbb54b0e7
commit 73d83fbb2b
2 changed files with 1 additions and 6 deletions
+1 -2
View File
@@ -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 */
-4
View File
@@ -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);
}