#ifdef _MSC_VER #define STRICT #define WIN32_LEAN_AND_MEAN #include #else #include #include #endif wvSetLowPriority() { #ifdef _MSC_VER SetPriorityClass( GetCurrentProcess(), BELOW_NORMAL_PRIORITY_CLASS ); SetThreadPriority( GetCurrentThread(), THREAD_PRIORITY_BELOW_NORMAL ); #else setpriority( PRIO_PROCESS, getpid(), 10 ); #endif }