Repository navigation
Added support for Visual Studio 2010's C89/C90 standard - #364
BrentDaMage wants to merge 1 commit into
Conversation
|
Thanks! I'm not sure how to test for this going forward? To support this properly, we should ideally add a CI test that builds with However, getting it to fully support C90 is probably more trouble than it is worth: I suppose we could |
|
There are some other instances of mixed declarations and code in the tests: (Are variable declarations in I guess that we can test for this specific problem by compiling with something like |
Sorry, I just realized I never tried to build any of the tests in VS2010, I just built I think |
|
In terms of compiling with VS2010 on our end, it was suggested that we could just build the library as C++ to obtain the necessary language features. |
|
Building as C++ should also work. |
I've made the following changes in the pursuit to compile utf8proc in Visual Studio 2010.
Since VS2010 doesn't support C99, I had to move some variable declarations to the top of their scopes.
The project luckily required surprisingly few changes in order to get it building on 2010.