chore(runtime-c-api) Update headers.

This commit is contained in:
Ivan Enderlin 2020-01-08 15:25:48 +01:00
parent b31a3dcdec
commit 4f691dde17
2 changed files with 20 additions and 14 deletions

View File

@ -1,17 +1,20 @@
#if !defined(WASMER_H_MACROS) #if !defined(WASMER_H_MACROS)
#define WASMER_H_MACROS #define WASMER_H_MACROS
#if defined(MSVC) // Define the `ARCH_X86_X64` constant.
#if defined(_M_AMD64) #if defined(MSVC) && defined(_M_AMD64)
# define ARCH_X86_64
#elif (defined(GCC) || defined(__GNUC__) || defined(__clang__)) && defined(__x86_64__)
# define ARCH_X86_64 # define ARCH_X86_64
#endif
#endif #endif
// Define the `DEPRECATED` macro.
#if defined(GCC) || defined(__GNUC__) || defined(__clang__) #if defined(GCC) || defined(__GNUC__) || defined(__clang__)
#if defined(__x86_64__) # define DEPRECATED(message) __attribute__((deprecated(message)))
#define ARCH_X86_64 #elif defined(MSVC)
#endif # define DEPRECATED(message) __declspec(deprecated(message))
#endif #endif
#define WASMER_WASI_ENABLED #define WASMER_WASI_ENABLED

View File

@ -1,17 +1,20 @@
#if !defined(WASMER_H_MACROS) #if !defined(WASMER_H_MACROS)
#define WASMER_H_MACROS #define WASMER_H_MACROS
#if defined(MSVC) // Define the `ARCH_X86_X64` constant.
#if defined(_M_AMD64) #if defined(MSVC) && defined(_M_AMD64)
# define ARCH_X86_64
#elif (defined(GCC) || defined(__GNUC__) || defined(__clang__)) && defined(__x86_64__)
# define ARCH_X86_64 # define ARCH_X86_64
#endif
#endif #endif
// Define the `DEPRECATED` macro.
#if defined(GCC) || defined(__GNUC__) || defined(__clang__) #if defined(GCC) || defined(__GNUC__) || defined(__clang__)
#if defined(__x86_64__) # define DEPRECATED(message) __attribute__((deprecated(message)))
#define ARCH_X86_64 #elif defined(MSVC)
#endif # define DEPRECATED(message) __declspec(deprecated(message))
#endif #endif
#define WASMER_WASI_ENABLED #define WASMER_WASI_ENABLED