[svn:parrot] r40961 - branches/pluggable_runcore/src/runcore
cotto at svn.parrot.org
cotto at svn.parrot.org
Thu Sep 3 18:13:32 UTC 2009
Author: cotto
Date: Thu Sep 3 18:13:30 2009
New Revision: 40961
URL: https://trac.parrot.org/parrot/changeset/40961
Log:
[profiling] #define getpid to _getpid on windows and get rid of some macros that are taken care of by hints
Modified:
branches/pluggable_runcore/src/runcore/cores.c
Modified: branches/pluggable_runcore/src/runcore/cores.c
==============================================================================
--- branches/pluggable_runcore/src/runcore/cores.c Thu Sep 3 17:05:43 2009 (r40960)
+++ branches/pluggable_runcore/src/runcore/cores.c Thu Sep 3 18:13:30 2009 (r40961)
@@ -260,15 +260,10 @@
# include "../jit.h"
#endif
-#if defined(CLOCK_PROCESS_CPUTIME_ID)
-# define CLOCK_BEST CLOCK_PROCESS_CPUTIME_ID
-#elif defined(CLOCK_PROF)
-# define CLOCK_BEST CLOCK_PROF
-#else
-# define CLOCK_BEST CLOCK_REALTIME
+#ifdef WIN32
+# define getpid _getpid
#endif
-
/* HEADERIZER HFILE: include/parrot/runcore_api.h */
/* HEADERIZER BEGIN: static */
More information about the parrot-commits
mailing list