X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=ABM2%2FEngine%2FKernel.cpp;h=7638ab10c0c725094ccf9c7638b182f0f53904c1;hb=6b155f2060372be8a528f217e61b3357a8b16898;hp=12afa65230fd612f541dab224d80d41d0ce834bb;hpb=c3e81e6b78efc4eefdf1837c894edd6022e1d58a;p=matthijs%2FABM2.git diff --git a/ABM2/Engine/Kernel.cpp b/ABM2/Engine/Kernel.cpp index 12afa65..7638ab1 100755 --- a/ABM2/Engine/Kernel.cpp +++ b/ABM2/Engine/Kernel.cpp @@ -27,6 +27,7 @@ int CKernel::Execute() { #ifdef WIN32 MSG msg; +#endif // WIN32 while(taskList.size()) { @@ -35,11 +36,13 @@ int CKernel::Execute() //DWORD starting_point = GetTickCount(); +#ifdef WIN32 if (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) { TranslateMessage(&msg); DispatchMessage(&msg); } +#endif // WIN32 std::list< CMMPointer >::iterator it, thisIt; @@ -70,7 +73,6 @@ int CKernel::Execute() CProfileSample::Output(); #endif } -#endif // WIN32 return 0; }