Ignore:
Timestamp:
Jul 9, 2020, 8:51:43 AM (4 years ago)
Author:
coas-nagasima
Message:

mrubyを2.1.1に更新

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"
    33**
    44** See Copyright Notice in mruby.h
     
    88#define MRUBY_COMMON_H
    99
     10#ifdef __APPLE__
     11  #ifndef __TARGETCONDITIONALS__
     12  #include "TargetConditionals.h"
     13  #endif
     14#endif
    1015
    1116#ifdef __cplusplus
     
    1520#else
    1621# define MRB_BEGIN_DECL extern "C" {
    17 # define MRB_END_DECL   }
     22# define MRB_END_DECL }
    1823#endif
    1924#else
     
    3035
    3136/** Declare a function that never returns. */
    32 #if __STDC_VERSION__ >= 201112L
     37#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 201112L
    3338# define mrb_noreturn _Noreturn
    3439#elif defined __GNUC__ && !defined __STRICT_ANSI__
     
    5055
    5156/** Declare a function as always inlined. */
    52 #if defined(_MSC_VER)
    53 # define MRB_INLINE static __inline
    54 #else
    55 # define MRB_INLINE static inline
     57#if defined _MSC_VER && _MSC_VER < 1900
     58# ifndef __cplusplus
     59#  define inline __inline
     60# endif
    5661#endif
    57 
     62#define MRB_INLINE static inline
    5863
    5964/** Declare a public MRuby API function. */
     65#ifndef MRB_API
    6066#if defined(MRB_BUILD_AS_DLL)
    6167#if defined(MRB_CORE) || defined(MRB_LIB)
     
    6773# define MRB_API extern
    6874#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
    6986
    7087MRB_END_DECL
Note: See TracChangeset for help on using the changeset viewer.