Commit e6445900 authored by rrt's avatar rrt
Browse files

[project @ 2001-07-02 13:02:29 by rrt]

Don't use _WIN32, use mingw32_TARGET_OS and cygwin32_TARGET_OS.
parent 16ad3bcb
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
* $Id: Stats.c,v 1.25 2001/03/22 03:51:10 hwloidl Exp $ * $Id: Stats.c,v 1.26 2001/07/02 13:02:29 rrt Exp $
* *
* (c) The GHC Team, 1998-1999 * (c) The GHC Team, 1998-1999
* *
...@@ -107,7 +107,7 @@ static nat pageFaults(void); ...@@ -107,7 +107,7 @@ static nat pageFaults(void);
/* elapsedtime() -- The current elapsed time in seconds */ /* elapsedtime() -- The current elapsed time in seconds */
#ifdef _WIN32 #if defined(mingw32_TARGET_OS) || defined(cygwin32_TARGET_OS)
#define NS_PER_SEC 10000000LL #define NS_PER_SEC 10000000LL
/* Convert FILETIMEs into secs since the Epoch (Jan1-1970) */ /* Convert FILETIMEs into secs since the Epoch (Jan1-1970) */
#define FT2longlong(ll,ft) \ #define FT2longlong(ll,ft) \
...@@ -117,7 +117,7 @@ static nat pageFaults(void); ...@@ -117,7 +117,7 @@ static nat pageFaults(void);
(ll) /= (unsigned long long) (NS_PER_SEC / CLOCKS_PER_SEC) (ll) /= (unsigned long long) (NS_PER_SEC / CLOCKS_PER_SEC)
#endif #endif
#ifdef _WIN32 #ifdef defined(mingw32_TARGET_OS) || defined(cygwin32_TARGET_OS)
/* cygwin32 or mingw32 version */ /* cygwin32 or mingw32 version */
static void static void
getTimes(void) getTimes(void)
...@@ -140,7 +140,7 @@ getTimes(void) ...@@ -140,7 +140,7 @@ getTimes(void)
CurrentUserTime = uT; CurrentUserTime = uT;
} }
#else /* !_WIN32 */ #else /* !win32 */
static void static void
getTimes(void) getTimes(void)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment