From: Junio C Hamano Date: Sat, 22 Oct 2011 00:56:45 GMT Subject: Re: [PATCH 1/3] MSVC: Compile fix by not including sys/resources.h Message-ID: <7vk47x7sj6.fsf@alter.siamese.dyndns.org> In-Reply-To: <4EA1C9C9.9010904@lyx.org> >> ... >> Subject: [PATCH 1/3] MSVC: Compile fix by not including sys/resources.h >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed ........................................................^^^^^^ Could you refrain from doing that? It breaks the patch text. Vincent van Ravesteijn writes: > Fix compilation when compiling with MSVC because sys/resource.h > is not available. This patch causes a number of other headerfiles > that are not available to be excluded as well. > > Signed-off-by: Vincent van Ravesteijn Instead of current #ifndef mingw32 is the only one that is strange ... everything for systems that is not strainge ... #else ... include mingw specific tweaks ... #endif #ifdef msvc is also strange ... include msvc specific tweaks ... #endif it turns things around and says what it wants to achieve in a more direct way, i.e. #if mingw32 #include "compat/mingw.h" #elif msvc #include "compat/msvc.h" #else ... all the others ... #endif which makes it look simpler.