From 1cff825276371e514489d95fd4a60b431c842d3a Mon Sep 17 00:00:00 2001 From: andrewsumner Date: Mon, 3 Nov 2008 22:50:14 +0000 Subject: [PATCH] Fixes for compile problems using Visual Studio 6.0 git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@137 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 2aecf69ee688a51daf8753c0c0759b97ee3d7434 Former-commit-id: 761ac8c3e26d586280a1d8b0d9735a7e302e2148 --- src/windows/windowsspec.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/windows/windowsspec.cpp b/src/windows/windowsspec.cpp index 634ded9e..93914eb4 100644 --- a/src/windows/windowsspec.cpp +++ b/src/windows/windowsspec.cpp @@ -647,17 +647,17 @@ 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 - +#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; +#endif + HANDLE hProcess = GetCurrentProcess(); ULONG_PTR ProcAM, SysAM;