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

Use INFINITY and NAN instead of strtod #6408

Merged
merged 2 commits into from
Apr 4, 2014

Conversation

tkelman
Copy link
Contributor

@tkelman tkelman commented Apr 4, 2014

This fixes an error syntax: overflow in numeric constant "0" in MSVC builds (thanks @vtjnash for figuring this out). strtod is not C99 compliant in any currently-released version of Visual Studio, though it will apparently be fixed for the next release. The INFINITY and NAN identifiers were added to math.h only in VS 2013. Could maybe fall back to openlibm.h instead? Ref. #6230 and #6349.

Also adds extern "C" on bitvector - there will be several more of these, for ccall-only functions that weren't needed to link libjulia or the REPL exe.

JeffBezanson added a commit that referenced this pull request Apr 4, 2014
Use INFINITY and NAN instead of strtod
@JeffBezanson JeffBezanson merged commit f9603e7 into JuliaLang:master Apr 4, 2014
@tkelman tkelman deleted the msvc-fixup2 branch April 4, 2014 01:20
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