diff options
Diffstat (limited to 'src/binaryen-c.h')
-rw-r--r-- | src/binaryen-c.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/binaryen-c.h b/src/binaryen-c.h index ae0a06835..1015c65de 100644 --- a/src/binaryen-c.h +++ b/src/binaryen-c.h @@ -47,7 +47,13 @@ #include <stddef.h> #include <stdint.h> -#include "compiler-support.h" +#ifdef __GNUC__ +#define WASM_DEPRECATED __attribute__((deprecated)) +#elif defined(_MSC_VER) +#define WASM_DEPRECATED __declspec(deprecated) +#else +#define WASM_DEPRECATED +#endif #if defined(_MSC_VER) && !defined(BUILD_STATIC_LIBRARY) #define BINARYEN_API __declspec(dllexport) |