From: Shawn O. Pearce Date: Tue, 12 Feb 2008 08:27:34 GMT Subject: Re: [PATCH] pack-objects: Add runtime detection of online CPU's Message-ID: <20080212082734.GC24004@spearce.org> In-Reply-To: <47B156CD.1010209@op5.se> Andreas Ericsson wrote: > diff --git a/thread-utils.h b/thread-utils.h > new file mode 100644 > index 0000000..53754b3 > --- /dev/null > +++ b/thread-utils.h > @@ -0,0 +1,19 @@ > +#ifndef THREAD_COMPAT_H > +#define THREAD_COMPAT_H > + > +#include "cache.h" > + > +#ifdef THREADED_DELTA_SEARCH > +#include > +# ifdef _WIN32 > +# define WIN32_LEAN_AND_MEAN > +# include > +# endif > +# if defined(hpux) || defined(__hpux) || defined(_hpux) > +# include > +# endif > +#endif Do we have to expose this mess of namespaces to those who include thread-utils.h? Seems like we don't, as online_cpus has a pretty simple definition: > + > +extern int online_cpus(void); > + > +#endif /* THREAD_COMPAT_H */ > -- > 1.5.4.rc5.11.g0eab8 -- Shawn.