mirror of
https://github.com/ruby/ruby.git
synced 2026-08-01 02:20:48 +08:00
25 lines
653 B
C
25 lines
653 B
C
/**
|
|
* @file compiler/exported.h
|
|
*/
|
|
#ifndef PRISM_COMPILER_EXPORTED_H
|
|
#define PRISM_COMPILER_EXPORTED_H
|
|
|
|
/**
|
|
* By default, we compile with -fvisibility=hidden. When this is enabled, we
|
|
* need to mark certain functions as being publically-visible. This macro does
|
|
* that in a compiler-agnostic way.
|
|
*/
|
|
#ifndef PRISM_EXPORTED_FUNCTION
|
|
# ifdef PRISM_EXPORT_SYMBOLS
|
|
# ifdef _WIN32
|
|
# define PRISM_EXPORTED_FUNCTION __declspec(dllexport) extern
|
|
# else
|
|
# define PRISM_EXPORTED_FUNCTION __attribute__((__visibility__("default"))) extern
|
|
# endif
|
|
# else
|
|
# define PRISM_EXPORTED_FUNCTION
|
|
# endif
|
|
#endif
|
|
|
|
#endif
|