From fadc6181693eaeedf67e7e0d204417277467a1f1 Mon Sep 17 00:00:00 2001 From: cotto Date: Thu, 3 Sep 2009 18:13:30 +0000 Subject: [PATCH] [profiling] #define getpid to _getpid on windows and get rid of some macros that are taken care of by hints git-svn-id: https://svn.parrot.org/parrot/branches/pluggable_runcore@40961 d31e2699-5ff4-0310-a27c-f18f2fbe73fe --- src/runcore/cores.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/runcore/cores.c b/src/runcore/cores.c index 06c3a0ccda..5727831bb0 100644 --- a/src/runcore/cores.c +++ b/src/runcore/cores.c @@ -260,15 +260,10 @@ next opcode, or examine and manipulate data from the executing program. # 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 */