Browse Source

Allow computed goto when using clang on Windows

Marco Bambini 5 years ago
parent
commit
d932008ae9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/shared/gravity_value.h

+ 2 - 2
src/shared/gravity_value.h

@@ -90,9 +90,9 @@ extern "C" {
 #define GRAVITY_MAP_DOTSUGAR                1           // if 1 then map objects can be accessed with both map[key] and map.key
 #endif
 
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && !defined(__clang__)
 #undef GRAVITY_COMPUTED_GOTO
-#define GRAVITY_COMPUTED_GOTO               0           // MSVC does not support it
+#define GRAVITY_COMPUTED_GOTO               0           // MSVC does not support computed goto (supported if using clang on Windows)
 #endif
 
 #define MAIN_FUNCTION                       "main"