lots of mods getting windows to build under cygwin without visual studio.
[feisty_meow.git] / nucleus / library / processes / process_control.h
index c6d2586176cd0a10c84f449d7b082d80e262c20e..350da8c653f63936c843053f922f197ea3b2a8f6 100644 (file)
@@ -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();