Skip to content

introduce MP_PRIVATE to hide symbols #275

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 1 commit into from
May 21, 2019
Merged

introduce MP_PRIVATE to hide symbols #275

merged 1 commit into from
May 21, 2019

Conversation

minad
Copy link
Member

@minad minad commented May 20, 2019

An alternative would be to compile with hidden symbols by default and make functions public via an visibility=default attribute. This would be consistent with Windows and declspec(dllexport) for the public symbols. However then we would pollute tommath.h prototypes with MP_PUBLIC attributes. Right now we need a .def file to specify exported symbols on Windows.

@minad minad force-pushed the hidden-symbols branch from 2c37d86 to b846f3a Compare May 20, 2019 05:01
@nijtmans
Copy link
Collaborator

Right now we need a .def file to specify exported symbols on Windows.

Generating a Windows def-file is done in #216, still needs a rebase.

Copy link
Collaborator

@nijtmans nijtmans left a comment

Choose a reason for hiding this comment

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

I like it!

@minad minad force-pushed the hidden-symbols branch from b846f3a to 79d777e Compare May 21, 2019 07:53
Copy link
Member

@sjaeckel sjaeckel left a comment

Choose a reason for hiding this comment

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

I also like it

@minad minad force-pushed the hidden-symbols branch 2 times, most recently from 7a7494e to bd6999c Compare May 21, 2019 15:02
@sjaeckel sjaeckel merged commit bdd3ee0 into develop May 21, 2019
@sjaeckel sjaeckel deleted the hidden-symbols branch May 21, 2019 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants