Re: Can we rely on #pragma once ?

2024-02-19 Thread Peter Hutterer
On Mon, Feb 19, 2024 at 03:02:18PM +0100, Mark Kettenis wrote: > > Date: Mon, 19 Feb 2024 12:13:34 +0100 > > From: "Enrico Weigelt, metux IT consult" > > > > Hello folks, > > Hi Enrico, > > > we've got a lot of include files, therefore lots of guards. > > > > Modern C compilers should

Re: Can we rely on #pragma once ?

2024-02-19 Thread Ismael Luceno
El 19 de febrero de 2024 11:13:34 UTC, "Enrico Weigelt, metux IT consult" escribió: >Hello folks, > >we've got a lot of include files, therefore lots of guards. > >Modern C compilers should understand #pragma once, but this isn't >without problems (possibly problematic with symlinks ?), and I

Re: Can we rely on #pragma once ?

2024-02-19 Thread Mark Kettenis
> Date: Mon, 19 Feb 2024 12:13:34 +0100 > From: "Enrico Weigelt, metux IT consult" > > Hello folks, Hi Enrico, > we've got a lot of include files, therefore lots of guards. > > Modern C compilers should understand #pragma once, but this isn't > without problems (possibly problematic with

Can we rely on #pragma once ?

2024-02-19 Thread Enrico Weigelt, metux IT consult
Hello folks, we've got a lot of include files, therefore lots of guards. Modern C compilers should understand #pragma once, but this isn't without problems (possibly problematic with symlinks ?), and I have to admit I don't how well is it supported outside of GNU land. Can we rely on it ? In