summaryrefslogtreecommitdiff
path: root/src/compiler-support.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler-support.h')
-rw-r--r--src/compiler-support.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler-support.h b/src/compiler-support.h
index f105271b5..5365aa23a 100644
--- a/src/compiler-support.h
+++ b/src/compiler-support.h
@@ -41,10 +41,13 @@
#ifdef __GNUC__
#define WASM_NORETURN __attribute__((noreturn))
+#define WASM_DEPRECATED __attribute__((deprecated))
#elif defined(_MSC_VER)
#define WASM_NORETURN __declspec(noreturn)
+#define WASM_DEPRECATED __declspec(deprecated)
#else
#define WASM_NORETURN
+#define WASM_DEPRECATED
#endif
// The code might contain TODOs or stubs that read some values but do nothing