Open danizen opened 6 years ago
On Windows, maybe you can use '_strnicmp' and '_wcsnicmp', which may work.
@xjtusedy , I think I already succeeded in building it by changing the tests on MSC_VER to build it, or maybe that was another package. In any case, I think I'm good now.
On Windows 7 with Microsoft Visual Studio 2015 and Python 3.5.1, I have these build errors out of the box:
I observe that in
src\pyodbc.h
, there is a macro defined for strcasecmp when _MSC_VER is not defined. Going the other way to avoid impacts on upstream, I added the following tosrc\virtuoso.h
:This leaves
wcsncasecmp
- I cannot figure out easily from Dr. Google how this should be solved, especially aswchar_t
is only 16-bits on windows. I will do my development in vagrant or on a server, and I suspect this will work, but I will want eventually to be able to do this from Windows as well - most of the developers here work from Windows, and I'm an exception in being able to use vagrant (and also dabble in C/C++ even though I don't write in it any longer).