Преглед изворни кода

Allow computed goto when using clang on Windows

Marco Bambini пре 5 година
родитељ
комит
d932008ae9
1 измењених фајлова са 2 додато и 2 уклоњено
  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"