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
[WinSDK] Numeric#** C99 impl breaks build #145
Comments
VC again? When can I expect MS to stop ignoring more-than 10 years old standard? I'm getting sick of it. |
This quote from an InfoQ article on MS C++ vs. C99 just about sums it up "This failure to support C99 has frustrated developers requesting Visual Studio compatibility with the long time standard. If VS supported C99 natively, it would be easier for users to develop and port existing cross-platform applications." re: VC isinf and isnan, here's a quick scan
compare that with a quick check from a recent mingw-w64 release:
|
Sigh. I am almost giving up VC. |
Yes, it's ugly. But don't give up just yet. Once we give VC users (cmd line and IDE) an easy way to build with their favorite tool (makefile or project file) via CMake I think/hope you'll get more VC dev participation. The good news is that devs like @nkshigeru are able to build mruby on VC IDE using the CMake generated project file :) Even though the CMake proto is still in early shape, I'd like to see more people tweet about it to get the word out to the VC devs. How many people know that the CMake proto can build mruby on OSX, Linux, and Windows mingw or VC? https://github.com/thecodeshop/mruby/wiki/CMake-compatible No bikeshedding here, but if we have to spackle a bunch more VC/Win32-specific workaround code, the |
I drop isfinite() from num_pow() in 74e531e. |
I hope mruby support VC, and I would like to help. VC does not have |
Thank you. When you see any problem compiling mruby on VC, submit the issue. |
With WinSDK 7.1 with cl 16.00.30319.01 I get the following failure because
numeric.c:num_pow
uses C99isfinite
which the msvcmath.h
header doesn't provide.If
isfinite
and other C99-isms are needed, the mingw and mingw-w64math.h
provides public domain impls. For example, line 281+ from the mingw-w64 math.h implThe text was updated successfully, but these errors were encountered: