libxo icon indicating copy to clipboard operation
libxo copied to clipboard

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

Open aokblast opened this issue 1 year ago • 2 comments

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

aokblast avatar Dec 05 '24 14:12 aokblast

Could you explain why you are wanting the C++ magic on files like xo_private.h and xo_explicit.h? These are internal/private files and should never be included by external c++ files.

Thanks, Phil

philshafer avatar Jan 10 '25 02:01 philshafer

Sorry for misuse extern "C" in code, I just try modifying all header until my code successfully compiled. Fix it right now!

aokblast avatar Jan 11 '25 13:01 aokblast