diff options
author | Simon Howard | 2009-10-16 18:35:19 +0000 |
---|---|---|
committer | Simon Howard | 2009-10-16 18:35:19 +0000 |
commit | 35f753d9e4b9d85cc712262a751729688e32aad6 (patch) | |
tree | 8bdecfaf3984c6ea1fee2a98526400ff648961dc /src/i_main.c | |
parent | 4c0dc104d7582d709d8cc665a1c46ed1d49cdd65 (diff) | |
download | chocolate-doom-35f753d9e4b9d85cc712262a751729688e32aad6.tar.gz chocolate-doom-35f753d9e4b9d85cc712262a751729688e32aad6.tar.bz2 chocolate-doom-35f753d9e4b9d85cc712262a751729688e32aad6.zip |
Fix compile under MSVC (thanks entryway).
Subversion-branch: /branches/raven-branch
Subversion-revision: 1718
Diffstat (limited to 'src/i_main.c')
-rw-r--r-- | src/i_main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/i_main.c b/src/i_main.c index a17d56b9..1ccc52c0 100644 --- a/src/i_main.c +++ b/src/i_main.c @@ -26,6 +26,8 @@ #include "config.h" +#include <stdio.h> + #include "SDL.h" #include "doomtype.h" @@ -53,7 +55,7 @@ static void LockCPUAffinity(void) #define WIN32_LEAN_AND_MEAN #include <windows.h> -typedef BOOL WINAPI (*SetAffinityFunc)(HANDLE hProcess, DWORD_PTR mask); +typedef BOOL (WINAPI *SetAffinityFunc)(HANDLE hProcess, DWORD mask); // This is a bit more complicated than it really needs to be. We really // just need to call the SetProcessAffinityMask function, but that @@ -79,7 +81,7 @@ static void LockCPUAffinity(void) } // Find the SetProcessAffinityMask function. - SetAffinity = GetProcAddress(kernel32_dll, "SetProcessAffinityMask"); + SetAffinity = (SetAffinityFunc)GetProcAddress(kernel32_dll, "SetProcessAffinityMask"); // If the function was not found, we are on an old (Win9x) system // that doesn't have this function. That's no problem, because |