Re: [PATCH] pack-objects: Add runtime detection of online CPU's
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Feb 12, 2008, 08:49 UTC
- Message-ID
- <47B15D8C.1000600@viscovery.net>
- In-Reply-To
- <47B156CD.1010209@op5.se>
Andreas Ericsson schrieb:
Show 11 quoted lines
> +#ifndef THREAD_COMPAT_H > +#define THREAD_COMPAT_H > + > +#include "cache.h" > + > +#ifdef THREADED_DELTA_SEARCH > +#include <pthread.h> > +# ifdef _WIN32 > +# define WIN32_LEAN_AND_MEAN > +# include <windows.h> > +# endif
And now what?
If you don't provide a pthread_* implementation for Windows, you can just drop the #ifdef _WIN32 part as long as the THREADED_DELTA_SEARCH guards remain.
-- Hannes