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)
Tue, Jul 29, 5:40 AM
Unknown Object (File)
Fri, Jul 25, 4:01 AM
Unknown Object (File)
Mon, Jul 21, 1:22 AM
Unknown Object (File)
Sat, Jul 12, 11:24 AM
Unknown Object (File)
Thu, Jul 10, 11:19 PM
Unknown Object (File)
Tue, Jul 8, 1:53 AM
Unknown Object (File)
Sun, Jul 6, 11:11 PM
Unknown Object (File)
Sun, Jul 6, 11:05 PM
Subscribers

Details

Reviewers
lwhsu
phil
khng
imp
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 61775
Build 58659: 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

This revision now requires review to proceed.Jan 16 2025, 6:09 PM

Looks good, not surprised upstream accepted it :).

This revision is now accepted and ready to land.Jan 16 2025, 6:25 PM