Unverified Commit 19610593 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4643 from lopopolo/externally-define-MRB_API

Allow external definition of MRB_API macro
parents 3fbd5f00 b5662c87
...@@ -62,6 +62,7 @@ MRB_BEGIN_DECL ...@@ -62,6 +62,7 @@ MRB_BEGIN_DECL
#define MRB_INLINE static inline #define MRB_INLINE static inline
/** Declare a public MRuby API function. */ /** Declare a public MRuby API function. */
#ifndef MRB_API
#if defined(MRB_BUILD_AS_DLL) #if defined(MRB_BUILD_AS_DLL)
#if defined(MRB_CORE) || defined(MRB_LIB) #if defined(MRB_CORE) || defined(MRB_LIB)
# define MRB_API __declspec(dllexport) # define MRB_API __declspec(dllexport)
...@@ -71,6 +72,7 @@ MRB_BEGIN_DECL ...@@ -71,6 +72,7 @@ MRB_BEGIN_DECL
#else #else
# define MRB_API extern # define MRB_API extern
#endif #endif
#endif
MRB_END_DECL MRB_END_DECL
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment