aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvchigrin <vchigrin@yandex-team.com>2025-01-17 19:56:39 +0300
committervchigrin <vchigrin@yandex-team.com>2025-01-17 21:27:29 +0300
commit877ff27e481a33b65c570b7ae80074b7aee799c5 (patch)
tree365140630dfcfd4e99f99a792bcaca5c09a5e700
parent6dd49974b4e1bac699c68922f109876f98afc655 (diff)
downloadydb-877ff27e481a33b65c570b7ae80074b7aee799c5.tar.gz
Fix util build for WASM32 platform.
commit_hash:14cab8a6f31c744cf717b9b093109987ceae7654
-rw-r--r--util/system/platform.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/util/system/platform.h b/util/system/platform.h
index e99f3b7828..0f5f668a3d 100644
--- a/util/system/platform.h
+++ b/util/system/platform.h
@@ -115,7 +115,11 @@
#define _wasm64_
#endif
-#if !defined(sparc) && !defined(__sparc) && !defined(__hpux__) && !defined(__alpha__) && !defined(_ia64_) && !defined(_x86_64_) && !defined(_arm_) && !defined(_i386_) && !defined(_ppc_) && !defined(_ppc64_) && !defined(_wasm64_)
+#if defined(__wasm32__)
+ #define _wasm32_
+#endif
+
+#if !defined(sparc) && !defined(__sparc) && !defined(__hpux__) && !defined(__alpha__) && !defined(_ia64_) && !defined(_x86_64_) && !defined(_arm_) && !defined(_i386_) && !defined(_ppc_) && !defined(_ppc64_) && !defined(_wasm64_) && !defined(_wasm32_)
#error "platform not defined, please, define one"
#endif