From: Jonathan Nieder Date: Mon, 29 Nov 2010 17:12:11 GMT Subject: Re: [PATCH] Fallback on _NSGetExecutablePath to get the executable path if using argv[0] fails Message-ID: <20101129171211.GL8037@burratino> In-Reply-To: Thiago Farina wrote: > On Mon, Nov 29, 2010 at 2:57 PM, Jeremy Huddleston wrote: >> Signed-off-by: Jeremy Huddleston >> Reviewed-by: Matt Wright I like the idea, but could you add a short commit message explaining the existing behavior and what improvement this makes? > Why not #if defined(__APPLE__), like above? More importantly, please search for #ifdef in existing code to get some examples of how we like to do platform-specific things. The section "2) #ifdefs are ugly" of linux-2.6/Documentation/SubmittingPatches explains the rationale. Regards, Jonathan