jedisct1 / libsodium

A modern, portable, easy to use crypto library.
https://libsodium.org
Other
12.06k stars 1.72k forks source link

Move includes in crypto_onetimeauth_poly1305.h outside of extern C #1345

Closed fiedukow closed 5 months ago

fiedukow commented 5 months ago

Includes being outside of extern "C" are de-facto standard in all other include files of libsodium.

At the same time, having inside the extern "C" is causing problem with C++ vs. C toolchain being confused about which libraries should be linked. This was especially painful while working on swift-sodium integration with windows.

jedisct1 commented 5 months ago

Thank you!