It's not freebsd-specific, but __BEGIN_DECLS isn't freebsd only. If it's reasonably portable, it makes sense to use it. I see it in macOS, glibc, and linux (at least some of dists).
Thanks, Phil On 10 Sep 2025, at 0:31, Konstantin Belousov wrote: > Would it be better to use __BEGIN_DECLS? I am not completely sure due to > > contrib/, but libxo is FreeBSD-specific enough already.