11 #ifndef __TARGETCONDITIONALS__
12 #include "TargetConditionals.h"
21# define MRB_BEGIN_DECL extern "C" {
22# define MRB_END_DECL }
26# define MRB_BEGIN_DECL
34typedef SSIZE_T ssize_t;
43#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L
44# define mrb_noreturn _Noreturn
45#elif defined __GNUC__ && !defined __STRICT_ANSI__
46# define mrb_noreturn __attribute__((noreturn))
48# define mrb_noreturn __declspec(noreturn)
54#if defined __GNUC__ && !defined __STRICT_ANSI__
55# define mrb_deprecated __attribute__((deprecated))
57# define mrb_deprecated __declspec(deprecated)
59# define mrb_deprecated
63#if defined _MSC_VER && _MSC_VER < 1900
65# define inline __inline
68#define MRB_INLINE static inline
72#if defined(MRB_BUILD_AS_DLL)
73#if defined(MRB_CORE) || defined(MRB_LIB)
74# define MRB_API __declspec(dllexport)
76# define MRB_API __declspec(dllimport)
79# define MRB_API extern
84#if defined(__MINGW32__) || defined(__MINGW64__)
86# if defined(__MINGW64_VERSION_MAJOR)
87# define MRB_MINGW64_VERSION (__MINGW64_VERSION_MAJOR * 1000 + __MINGW64_VERSION_MINOR)
88# elif defined(__MINGW32_MAJOR_VERSION)
89# define MRB_MINGW32_VERSION (__MINGW32_MAJOR_VERSION * 1000 + __MINGW32_MINOR_VERSION)
91# if defined(__MINGW32__) && !defined(__MINGW64__)
92# define MRB_MINGW32_LEGACY
#define MRB_END_DECL
End declarations in C mode.
Definition common.h:28
#define MRB_BEGIN_DECL
Start declarations in C mode.
Definition common.h:26