Am 01.07.2015 um 08:52 schrieb Stefan Behnel:
> Hi,
>
> I stumbled over this code in MemoryView_C.c, line 36:
>
> """
> #elif CYTHON_ATOMICS && MSC_VER
> """
>
> Shouldn't this spell "defined(_MSV_VER)" ? Mind the leading underscore.
>
Hi,
I didn't check it with memoryview code, but _MSC_VER is definitely
correct. Checking the predefined constants page in msdn (german version
here (google doesn't even show me the english one)
https://msdn.microsoft.com/de-de/library/b0084kay.aspx), _MSC_VER is the
one and only way, a constant called MSC_VER doesn't even exist. I used
_MSC_VER in some of my code and I know that it works, so it would be
safer to use it instead of MSC_VER, even if that constant exists too, it
is nowhere listed and might therefore not be supported in all Visual
Studio versions.
Best Regards,
Toni