Skip to content

Commit

Permalink
[profiling] #define getpid to _getpid on windows and get rid of some …
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
cotto committed Sep 3, 2009
1 parent 963a544 commit fadc618
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/runcore/cores.c
Expand Up @@ -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 */
Expand Down

0 comments on commit fadc618

Please sign in to comment.