[systemd-devel] [PATCH] use #pragma once instead of foo*foo #define guards

Kay Sievers kay at vrfy.org
Wed Jul 18 03:47:44 PDT 2012


On Wed, Jul 18, 2012 at 12:39 PM, Lennart Poettering
<lennart at poettering.net> wrote:
> On Tue, 17.07.12 17:14, Shawn Landden (shawnlandden at gmail.com) wrote:

> Hmm, so I am not completely opposed to this (though I also don't see the
> big benefit). But before we merge anything like this: I think the
> externally visible headers (i.e. the ones above) should really continue
> to use the classic #ifdef guards. For the externally used headers we
> should try hard to make them as "compatible" as we can. That includes
> the C++ external foo, but also not using any fancy C99 features or
> #pragmas.
>
> Kay, Michal, do you have any strong opinion on this?

I don't care much.

But I like the "experiment", it looks like a nice way doing that.
Sounds fine to me to try with all the internal stuff, but not the
libs.

Kay


More information about the systemd-devel mailing list