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

Fix the definition of max_align_t for Windows #26

Merged
merged 1 commit into from
Dec 11, 2014

Conversation

ehsan
Copy link
Contributor

@ehsan ehsan commented Dec 10, 2014

clang-cl currently chokes on this code because of the incompatible
typedefs.

clang-cl currently chokes on this code because of the incompatible
typedefs.
@kinetiknz
Copy link
Collaborator

I think I'd prefer max_align_t to be defined only if it's not already defined.

@ehsan
Copy link
Contributor Author

ehsan commented Dec 11, 2014

I think I'd prefer max_align_t to be defined only if it's not already defined.

Well, that's hard. max_align_t is supposed to be available in C++11 but it's not in the libstdc++ shipped with Ubuntu 14.04, for example. And unfortunately we cannot detect the existence of typedefs in C++, so I'm not sure how to do what you suggest.

kinetiknz added a commit that referenced this pull request Dec 11, 2014
Fix the definition of max_align_t for Windows
@kinetiknz kinetiknz merged commit c4ef670 into mozilla:master Dec 11, 2014
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.

2 participants