jerry gay wrote:
On 6/12/07, Andy Lester <[EMAIL PROTECTED]> wrote:

I'm very uncomfortable with removing #pragma once from our header
files.  It is perfectly valid C89 code, and I think bowing to a
broken compiler is unhealthy precedent.

to add some context, in r18884 andy committed a patch (after my
suggestion) to put C<#pragma once> in every c header file, after
reading that it should speed up compilation with msvc. i consulted my
copy of k&r, which states that unrecognized pragmas should be ignored,
so it should have no ill effects on other platforms.

Do we have any proof that it does speed up compilation with msvc? Littering our code with "optimizations" for odd compilers is also an unhealthy precedent.

Allison

Reply via email to