mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-18 13:49:59 +01:00
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:
@ -36,7 +36,7 @@
|
|||||||
// see https://bullno1.com/blog/switched-goto for alternative
|
// see https://bullno1.com/blog/switched-goto for alternative
|
||||||
// Defaults to true on supported compilers.
|
// Defaults to true on supported compilers.
|
||||||
#ifndef WREN_COMPUTED_GOTO
|
#ifndef WREN_COMPUTED_GOTO
|
||||||
#ifdef _MSC_VER
|
#if defined(_MSC_VER) && !defined(__clang__)
|
||||||
// No computed gotos in Visual Studio.
|
// No computed gotos in Visual Studio.
|
||||||
#define WREN_COMPUTED_GOTO 0
|
#define WREN_COMPUTED_GOTO 0
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user