X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2FABM2.git;a=blobdiff_plain;f=ABM2%2FEngine%2FKernel.cpp;h=7638ab10c0c725094ccf9c7638b182f0f53904c1;hp=12afa65230fd612f541dab224d80d41d0ce834bb;hb=784aa42247545bf80768602a32fbad922bb7d4c3;hpb=f0ae13a5c4d0ba9f0aae5eed5f489a67b96510a5 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; }