-
Notifications
You must be signed in to change notification settings - Fork 710
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
make VS2010 happy #165
make VS2010 happy #165
Conversation
It may be the same idea of #158 . Either we remove all 'for' loop initial declarations, etc. to fit ISO C90/GNU C90 or lower versions, or we choose to adopt C99 standard and not to satisfy VS2010. |
I think my commits fit ISO C90. |
I think it's easy to make the decision. because the code base will not change many and supporting more compilers is a good idea. |
This PR is also similar to #59. The current thinking is that the master branch is compiled using one of two toolsets: VS2017 and mingw. Right now, it would be easy to make VS2010 work, but the question is whether going forward we support VS2010 indefinitely. I agree with a comment @leeter made in #9 and elsewhere: let's stick with modern compilers to get the best code generation, optimization and security features. Other comments? |
I second the motion. We should send C90, MinGW 3.x, VS2010s into the trash. |
@craigwi I wasn't planning on commenting on this but if you're going to go this route you should consider removing the dependency on undocumented apis for formatting and copying volumes and switch to WMI to manage that depending on what OSs you still want to support. The storage management classes are the official way to do these things in windows 8 and beyond. |
I have finished the work for Windows XP and VS2010. https://github.com/ssrlive/winfile/tree/winxp |
make VS2010 happy