Allow computed goto when using clang on Windows

Clang defines _MSC_VER for compatibility with MSVC, but that can often create problems for code that assumes MSVC only.
This commit is contained in:
underscorediscovery
2020-07-18 20:41:16 -07:00
parent 286162365a
commit b279e51fd1

View File

@ -36,7 +36,7 @@
// see https://bullno1.com/blog/switched-goto for alternative
// Defaults to true on supported compilers.
#ifndef WREN_COMPUTED_GOTO
#ifdef _MSC_VER
#if defined(_MSC_VER) && !defined(__clang__)
// No computed gotos in Visual Studio.
#define WREN_COMPUTED_GOTO 0
#else