Joerg Sonnenberger wrote: > On Mon, Oct 27, 2008 at 11:31:19PM +0900, Naruto TAKAHASHI wrote: >> #if defined(CLOCK_PROCESS_CPUTIME_ID) && defined(__linux__) >> # define CLOCK CLOCK_PROCESS_CPUTIME_ID >> #elif defined(CLOCK_PROF) && defined(__FreeBSD__) >> # define CLOCK CLOCK_PROF >> #else >> # define CLOCK CLOCK_REALTIME >> #endif >> return clock_gettime(CLOCK, tp); > > E.g. CLOCK_PROF exists on the other BSDs as well. Please, try to keep OS > specific ifdefs to the minimal amount.
Current code is (without OS specific ifdefs): #if defined(CLOCK_PROCESS_CPUTIME_ID) return clock_gettime(CLOCK_PROCESS_CPUTIME_ID, tp); #elif defined(CLOCK_PROF) return clock_gettime(CLOCK_PROF, tp); #else return clock_gettime(CLOCK_REALTIME, tp); #endif Sebastian ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel