Can we rely on #pragma once ?
Enrico Weigelt, metux IT consult
info at metux.net
Mon Feb 19 11:13:34 UTC 2024
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 fact, we already have one place using it:
include/xwayland-config.h.meson.in
But I doubt that xwayland is ever been compiled w/ non-gnu/non-clang
compilers.
--mtx
--
---
Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert
werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren
GPG/PGP-Schlüssel zu.
---
Enrico Weigelt, metux IT consult
Free software and Linux embedded engineering
info at metux.net -- +49-151-27565287
More information about the xorg-devel
mailing list