Changeset 439 for EcnlProtoTool/trunk/mruby-2.1.1/include/mruby/common.h
- Timestamp:
- Jul 9, 2020, 8:51:43 AM (4 years ago)
- Location:
- EcnlProtoTool/trunk/mruby-2.1.1
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/mruby-2.1.1/include/mruby/common.h
r331 r439 1 /* 2 ** "common.h - mruby common platform definition"1 /** 2 ** @file common.h - mruby common platform definition" 3 3 ** 4 4 ** See Copyright Notice in mruby.h … … 8 8 #define MRUBY_COMMON_H 9 9 10 #ifdef __APPLE__ 11 #ifndef __TARGETCONDITIONALS__ 12 #include "TargetConditionals.h" 13 #endif 14 #endif 10 15 11 16 #ifdef __cplusplus … … 15 20 #else 16 21 # define MRB_BEGIN_DECL extern "C" { 17 # define MRB_END_DECL 22 # define MRB_END_DECL } 18 23 #endif 19 24 #else … … 30 35 31 36 /** Declare a function that never returns. */ 32 #if __STDC_VERSION__ >= 201112L37 #if defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L 33 38 # define mrb_noreturn _Noreturn 34 39 #elif defined __GNUC__ && !defined __STRICT_ANSI__ … … 50 55 51 56 /** Declare a function as always inlined. */ 52 #if defined (_MSC_VER)53 # define MRB_INLINE static __inline54 # else55 # define MRB_INLINE static inline57 #if defined _MSC_VER && _MSC_VER < 1900 58 # ifndef __cplusplus 59 # define inline __inline 60 # endif 56 61 #endif 57 62 #define MRB_INLINE static inline 58 63 59 64 /** Declare a public MRuby API function. */ 65 #ifndef MRB_API 60 66 #if defined(MRB_BUILD_AS_DLL) 61 67 #if defined(MRB_CORE) || defined(MRB_LIB) … … 67 73 # define MRB_API extern 68 74 #endif 75 #endif 76 77 /** Declare mingw versions */ 78 #if defined(__MINGW32__) || defined(__MINGW64__) 79 # include <_mingw.h> 80 # if defined(__MINGW64_VERSION_MAJOR) 81 # define MRB_MINGW64_VERSION (__MINGW64_VERSION_MAJOR * 1000 + __MINGW64_VERSION_MINOR) 82 # elif defined(__MINGW32_MAJOR_VERSION) 83 # define MRB_MINGW32_VERSION (__MINGW32_MAJOR_VERSION * 1000 + __MINGW32_MINOR_VERSION) 84 # endif 85 #endif 69 86 70 87 MRB_END_DECL
Note:
See TracChangeset
for help on using the changeset viewer.