I am just going through some code and have come across an #ifdef
that is:
#ifdef __MACH__ #define CLOCK_REALTIME 0 int clock_gettime (int /*clk_id*/, struct timespec *t) { struct timeval now; int rv = gettimeofday(&now, NULL); if (rv) return rv; t->tv_sec = now.tv_sec; t->tv_nsec = now.tv_usec * 1000; return 0; } #endif
What does __MACH__
refer to here? Is it an arbitrary name for "machine" which references the current OS I am compiling on? That's really the only thing I can think of it being.