X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Flibrary%2Fprocesses%2Fprocess_control.h;h=350da8c653f63936c843053f922f197ea3b2a8f6;hb=d8b495333de90eab06c1b3f272fefd4bad4fcc9d;hp=c6d2586176cd0a10c84f449d7b082d80e262c20e;hpb=457b128b77b5b4a0b7dd3094de543de2ce1477ad;p=feisty_meow.git diff --git a/nucleus/library/processes/process_control.h b/nucleus/library/processes/process_control.h index c6d25861..350da8c6 100644 --- a/nucleus/library/processes/process_control.h +++ b/nucleus/library/processes/process_control.h @@ -74,19 +74,17 @@ public: private: process_implementation_hider *_ptrs; //!< our OS baggage. -#ifdef __UNIX__ +#ifndef _MSC_VER mathematics::chaos *_rando; //!< used for process list. -#endif -#ifdef __WIN32__ +#else bool _use_psapi; //!< true if we should be using the PSAPI on NT and family. #endif bool _healthy; //!< true if construction succeeded. -#ifdef __UNIX__ +#ifndef _MSC_VER bool get_processes_with_ps(process_entry_array &to_fill); //!< asks the ps program what processes exist. -#endif -#ifdef __WIN32__ +#else // fill in our function pointers to access the kernel functions appropriate // for either NT (psapi) or 9x (toolhelp). bool initialize_psapi_support();