diff --git a/reactos/lib/crt/include/internal/tls.h b/reactos/lib/crt/include/internal/tls.h index 690aa398784..1ad72f2ba3f 100644 --- a/reactos/lib/crt/include/internal/tls.h +++ b/reactos/lib/crt/include/internal/tls.h @@ -9,14 +9,13 @@ #include #include -#include #include 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 */ diff --git a/reactos/lib/crt/stdlib/rand.c b/reactos/lib/crt/stdlib/rand.c index ddcfe47d1cd..eb7e38b8bf1 100644 --- a/reactos/lib/crt/stdlib/rand.c +++ b/reactos/lib/crt/stdlib/rand.c @@ -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); }