Update typedef for visual c++6 in windowsspec.cpp by Andrew

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@132 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: d9b9ef5dbf84bb54a720e8f1c2cd1aaf8a12847a
Former-commit-id: f0325a3c8e20680ab863d7534ff473824a21f231
This commit is contained in:
torcs-ng 2008-11-03 17:36:17 +00:00
parent f0b92d7072
commit a42e5983ba

View file

@ -646,7 +646,18 @@ windowsSetAffinity(void)
{
/* Restrict wtorcs.exe to one CPU core/processor - avoids jerky rendering
* especially under Vista. */
#ifndef ULONG_PTR
typedef unsigned long ULONG_PTR;
#endif
#ifndef PDWORD_PTR
#ifndef DWORD_PTR
typedef ULONG_PTR DWORD_PTR;
#endif
typedef DWORD_PTR *PDWORD_PTR;
#define
HANDLE hProcess = GetCurrentProcess();
ULONG_PTR ProcAM, SysAM;