|
|
|
@ -144,33 +144,98 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef FT_MAKE_OPTION_SINGLE_OBJECT |
|
|
|
|
#define LOCAL_DEF static |
|
|
|
|
#define LOCAL_FUNC static |
|
|
|
|
|
|
|
|
|
#define LOCAL_DEF static |
|
|
|
|
#define LOCAL_FUNC static |
|
|
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
#define LOCAL_DEF extern "C" |
|
|
|
|
#define LOCAL_FUNC extern "C" |
|
|
|
|
#else |
|
|
|
|
#define LOCAL_DEF extern |
|
|
|
|
#define LOCAL_FUNC /* nothing */ |
|
|
|
|
#define LOCAL_DEF extern |
|
|
|
|
#define LOCAL_FUNC extern |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#ifdef FT_MAKE_OPTION_SINGLE_LIBRARY_OBJECT |
|
|
|
|
#define BASE_DEF( x ) static x |
|
|
|
|
#define BASE_FUNC( x ) static x |
|
|
|
|
#endif /* FT_MAKE_OPTION_SINGLE_OBJECT */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef BASE_DEF |
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
#define BASE_DEF( x ) extern "C" x |
|
|
|
|
#else |
|
|
|
|
#define BASE_DEF( x ) extern x |
|
|
|
|
#define BASE_FUNC( x ) extern x |
|
|
|
|
#define BASE_DEF( x ) extern x |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#ifndef FT_EXPORT_DEF |
|
|
|
|
#define FT_EXPORT_DEF( x ) extern x |
|
|
|
|
#endif /* !BASE_DEF */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef BASE_FUNC |
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
#define BASE_FUNC( x ) extern "C" x |
|
|
|
|
#else |
|
|
|
|
#define BASE_FUNC( x ) extern x |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#endif /* !BASE_FUNC */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef FT_EXPORT_DEF |
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
#define FT_EXPORT_DEF( x ) extern "C" x |
|
|
|
|
#else |
|
|
|
|
#define FT_EXPORT_DEF( x ) extern x |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#ifndef FT_EXPORT_FUNC |
|
|
|
|
#define FT_EXPORT_FUNC( x ) extern x |
|
|
|
|
#endif /* !FT_EXPORT_DEF */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef FT_EXPORT_FUNC |
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
#define FT_EXPORT_FUNC( x ) extern "C" x |
|
|
|
|
#else |
|
|
|
|
#define FT_EXPORT_FUNC( x ) extern x |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#ifndef FT_EXPORT_VAR |
|
|
|
|
#define FT_EXPORT_VAR( x ) extern x |
|
|
|
|
#endif /* !FT_EXPORT_FUNC */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef FT_EXPORT_VAR |
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
#define FT_EXPORT_VAR( x ) extern "C" x |
|
|
|
|
#else |
|
|
|
|
#define FT_EXPORT_VAR( x ) extern x |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#endif /* !FT_EXPORT_VAR */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* This is special. Within C++, you must specify `extern "C"' for */ |
|
|
|
|
/* functions which are used via function pointers, and you also */ |
|
|
|
|
/* must do that for structures which contain function pointers to */ |
|
|
|
|
/* assure C linkage -- it's not possible to have (local) anonymous */ |
|
|
|
|
/* functions which are accessed by (global) function pointers. */ |
|
|
|
|
/* */ |
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
|
|
|
|
|
#define LOCAL_FUNC_X extern "C" |
|
|
|
|
|
|
|
|
|
#define FT_CPLUSPLUS( x ) extern "C" x |
|
|
|
|
|
|
|
|
|
#else |
|
|
|
|
|
|
|
|
|
#define LOCAL_FUNC_X static |
|
|
|
|
|
|
|
|
|
#define FT_CPLUSPLUS( x ) x |
|
|
|
|
|
|
|
|
|
#endif /* __cplusplus */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus |
|
|
|
|
} |
|
|
|
|