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

Fix inverted WASM_DISABLE_WAKEUP_BLOCKING_OP checks (#2571)

YAMAMOTO Takashi 2 лет назад
Родитель
Сommit
6fca48d8e6

+ 1 - 1
core/shared/platform/darwin/platform_internal.h

@@ -102,7 +102,7 @@ os_sigreturn();
 #endif /* end of BUILD_TARGET_X86_64/AMD_64/AARCH64/RISCV64 */
 #endif /* end of WASM_DISABLE_HW_BOUND_CHECK */
 
-#if WASM_DISABLE_WAKEUP_BLOCKING_OP != 0
+#if WASM_DISABLE_WAKEUP_BLOCKING_OP == 0
 #define OS_ENABLE_WAKEUP_BLOCKING_OP
 #endif
 void

+ 1 - 1
core/shared/platform/freebsd/platform_internal.h

@@ -101,7 +101,7 @@ os_sigreturn();
 #endif /* end of BUILD_TARGET_X86_64/AMD_64/AARCH64/RISCV64 */
 #endif /* end of WASM_DISABLE_HW_BOUND_CHECK */
 
-#if WASM_DISABLE_WAKEUP_BLOCKING_OP != 0
+#if WASM_DISABLE_WAKEUP_BLOCKING_OP == 0
 #define OS_ENABLE_WAKEUP_BLOCKING_OP
 #endif
 void

+ 1 - 1
core/shared/platform/linux/platform_internal.h

@@ -115,7 +115,7 @@ os_sigreturn();
 #endif /* end of BUILD_TARGET_X86_64/AMD_64/AARCH64/RISCV64 */
 #endif /* end of WASM_DISABLE_HW_BOUND_CHECK */
 
-#if WASM_DISABLE_WAKEUP_BLOCKING_OP != 0
+#if WASM_DISABLE_WAKEUP_BLOCKING_OP == 0
 #define OS_ENABLE_WAKEUP_BLOCKING_OP
 #endif
 void

+ 1 - 1
core/shared/platform/nuttx/platform_internal.h

@@ -123,7 +123,7 @@ utimensat(int fd, const char *path, const struct timespec ts[2], int flag);
 DIR *
 fdopendir(int fd);
 
-#if WASM_DISABLE_WAKEUP_BLOCKING_OP != 0
+#if WASM_DISABLE_WAKEUP_BLOCKING_OP == 0
 #define OS_ENABLE_WAKEUP_BLOCKING_OP
 #endif
 void