File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4747#include <stddef.h>
4848#include <stdint.h>
4949
50- #include "compiler-support.h"
50+ #ifdef __GNUC__
51+ #define WASM_DEPRECATED __attribute__((deprecated))
52+ #elif defined(_MSC_VER )
53+ #define WASM_DEPRECATED __declspec(deprecated)
54+ #else
55+ #define WASM_DEPRECATED
56+ #endif
5157
5258#if defined(_MSC_VER ) && !defined(BUILD_STATIC_LIBRARY )
5359#define BINARYEN_API __declspec(dllexport)
Original file line number Diff line number Diff line change 5050
5151#ifdef __GNUC__
5252#define WASM_NORETURN __attribute__((noreturn))
53- #define WASM_DEPRECATED __attribute__((deprecated))
5453#elif defined(_MSC_VER )
5554#define WASM_NORETURN __declspec(noreturn)
56- #define WASM_DEPRECATED __declspec(deprecated)
5755#else
5856#define WASM_NORETURN
59- #define WASM_DEPRECATED
6057#endif
6158
6259// The code might contain TODOs or stubs that read some values but do nothing
You can’t perform that action at this time.
0 commit comments