[Trent Mick] > I am inclined to agrre with Thomas and Greg on this one. Why not check for > sizeof(pthread_t) if pthread.h exists and test: > > #if SIZEOF_PTHREAD_T < SIZEOF_LONG > return (long)threadid; > #endif Change "<" to "<=" and I won't gripe.