Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Conversation

fiedukow
Copy link
Contributor

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.

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
Copy link
Owner

Thank you!

@jedisct1 jedisct1 merged commit b564794 into jedisct1:master Jan 17, 2024
8 checks passed
jedisct1 pushed a commit that referenced this pull request Jan 17, 2024
…1345)

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.
@compnerd compnerd deleted the andrzej/cleanupInclude/1 branch January 17, 2024 16:23
ghazel pushed a commit to clostra/libsodium that referenced this pull request Feb 23, 2024
…edisct1#1345)

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.
Repository owner locked and limited conversation to collaborators Apr 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants