Page MenuHomeFreeBSD

contrib/libxo/libxo/*.h fix libxo header include when the source is C++
AcceptedPublic

Authored by aokblast on Dec 5 2024, 2:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 10 2024, 8:14 AM
Unknown Object (File)
Dec 6 2024, 7:50 PM
Subscribers

Details

Reviewers
lwhsu
phil
khng
Summary

C++ needs extern C to disable C++ name mangling.
To use libxo in C++ it is better to include extern "C" guardian

Diff Detail

Repository
rG FreeBSD src repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 60967
Build 57851: arc lint + arc unit

Event Timeline

khng added a subscriber: khng.

@phil for a confirmation as well.

This revision is now accepted and ready to land.Dec 5 2024, 9:56 PM

Patch looks fine. I'll add to the main libxo repo.

Thanks,
Phil

Patch looks fine. I'll add to the main libxo repo.

Thanks,
Phil

FYI @aokblast also submitted as https://github.com/Juniper/libxo/pull/100