Fix build.
Modified: trunk/reactos/lib/crt/include/internal/tls.h
Modified: trunk/reactos/lib/crt/stdlib/rand.c
_____
Modified: trunk/reactos/lib/crt/include/internal/tls.h
--- trunk/reactos/lib/crt/include/internal/tls.h 2005-06-18
15:24:30 UTC (rev 16044)
+++ trunk/reactos/lib/crt/include/internal/tls.h 2005-06-18
15:50:23 UTC (rev 16045)
@@ -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 */
_____
Modified: trunk/reactos/lib/crt/stdlib/rand.c
--- trunk/reactos/lib/crt/stdlib/rand.c 2005-06-18 15:24:30 UTC (rev
16044)
+++ trunk/reactos/lib/crt/stdlib/rand.c 2005-06-18 15:50:23 UTC (rev
16045)
@@ -11,11 +11,7 @@
{
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);
}