You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Generic helper definitions for shared library support
#if defined _WIN32 || defined __CYGWIN__
#defineFOX_HELPER_DLL_IMPORT__declspec(dllimport)
#define FOX_HELPER_DLL_EXPORT __declspec(dllexport)
#define FOX_HELPER_DLL_LOCAL
#else
#if __GNUC__ >= 4
#defineFOX_HELPER_DLL_IMPORT__attribute__ ((visibility ("default")))
#define FOX_HELPER_DLL_EXPORT __attribute__ ((visibility ("default")))
#define FOX_HELPER_DLL_LOCAL __attribute__ ((visibility ("hidden")))
#else
#defineFOX_HELPER_DLL_IMPORT
#defineFOX_HELPER_DLL_EXPORT
#defineFOX_HELPER_DLL_LOCAL
#endif
#endif// Now we use the generic helper definitions above to define FOX_API and FOX_LOCAL.// FOX_API is used for the public API symbols. It either DLL imports or DLL exports (or does nothing for static build)// FOX_LOCAL is used for non-api symbols.
#ifdef FOX_DLL // defined if FOX is compiled as a DLL
#ifdef FOX_DLL_EXPORTS // defined if we are building the FOX DLL (instead of using it)
#defineFOX_API FOX_HELPER_DLL_EXPORT
#else
#defineFOX_API FOX_HELPER_DLL_IMPORT
#endif// FOX_DLL_EXPORTS
#defineFOX_LOCAL FOX_HELPER_DLL_LOCAL
#else// FOX_DLL is not defined: this means FOX is a static lib.
#defineFOX_API
#defineFOX_LOCAL
#endif// FOX_DLL
C language source code Visibility.h
/* C++ needs to know that types and declarations are C, not C++. */#ifdef__cplusplus# define__BEGIN_DECLS extern "C" {
# define__END_DECLS }
#else# define__BEGIN_DECLS# define__END_DECLS#endif