Просмотр исходного кода

Fix build with ancient GCC (4.8) (#2553)

Fixes: https://github.com/bytecodealliance/wasm-micro-runtime/issues/2552
YAMAMOTO Takashi 2 лет назад
Родитель
Сommit
9c34fc3514
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      product-mini/platforms/posix/main.c

+ 4 - 1
product-mini/platforms/posix/main.c

@@ -497,7 +497,10 @@ dump_pgo_prof_data(wasm_module_inst_t module_inst, const char *path)
 struct timeout_arg {
     uint32 timeout_ms;
     wasm_module_inst_t inst;
-    _Atomic bool cancel;
+#if defined(BH_HAS_STD_ATOMIC)
+    _Atomic
+#endif
+        bool cancel;
 };
 
 void *