File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 47
47
#include <stddef.h>
48
48
#include <stdint.h>
49
49
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
51
57
52
58
#if defined(_MSC_VER ) && !defined(BUILD_STATIC_LIBRARY )
53
59
#define BINARYEN_API __declspec(dllexport)
Original file line number Diff line number Diff line change 50
50
51
51
#ifdef __GNUC__
52
52
#define WASM_NORETURN __attribute__((noreturn))
53
- #define WASM_DEPRECATED __attribute__((deprecated))
54
53
#elif defined(_MSC_VER )
55
54
#define WASM_NORETURN __declspec(noreturn)
56
- #define WASM_DEPRECATED __declspec(deprecated)
57
55
#else
58
56
#define WASM_NORETURN
59
- #define WASM_DEPRECATED
60
57
#endif
61
58
62
59
// 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