Skip to content

mpi/cxx: isolate internal headers from C++ bindings #2162

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

Merged
merged 5 commits into from
Oct 14, 2016

Conversation

hjelmn
Copy link
Member

@hjelmn hjelmn commented Oct 4, 2016

This commit adds some glue code to support the C++ bindings and
updates the bindings to use the new glue code. This protects our
internal headers (which are C99) from C++. This is done as a quick
workaround to compilation errors when the legacy C++ bindings are
requested.

Fixes #2055

Signed-off-by: Nathan Hjelm [email protected]
(cherry picked from commit c6464ca)

@jsquyres
Copy link
Member

@hjelmn Did this get the additional commits from master?

hjelmn and others added 4 commits October 12, 2016 09:25
This commit adds some glue code to support the C++ bindings and
updates the bindings to use the new glue code. This protects our
internal headers (which are C99) from C++. This is done as a quick
workaround to compilation errors when the legacy C++ bindings are
requested.

Fixes open-mpi#2055

Signed-off-by: Nathan Hjelm <[email protected]>
(cherry picked from commit c6464ca)
ISO C forbids mixing object pointer and function pointer

(cherry picked from commit b95e243)
and avoid #includ'ing stuff that breaks C++ compilers

(cherry picked from commit 974dd64)
@hjelmn hjelmn force-pushed the v2.x_cxx_isolation branch from 4dc1cb4 to 0495dc6 Compare October 12, 2016 15:26
Copy link
Member

@jsquyres jsquyres left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, with further discussion, @hjelmn is going to put in one more warnings-squash commit on master and this PR.

Signed-off-by: Nathan Hjelm <[email protected]>
(cherry picked from commit ab0a005)
Signed-off-by: Nathan Hjelm <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants