Blame src/internal/treebnf_visibility_impl.h

02e59c
#ifndef TREEBNF_VISIBILITY_IMPL_H
02e59c
#define TREEBNF_VISIBILITY_IMPL_H
02e59c
02e59c
/**********************************************************************/
02e59c
/* PE targets: __dllexport suffices for the purpose of exporting only */
02e59c
/* the desired subset of global symbols; this makes the visibility    */
02e59c
/* attribute not only redundant, but also tricky if not properly      */
02e59c
/* supported by the toolchain.                                        */
02e59c
/*                                                                    */
02e59c
/* When targeting Midipix, __PE__, __dllexport and __dllimport are    */
02e59c
/* always defined by the toolchain. Otherwise, the absnece of these   */
02e59c
/* macros has been detected by sofort's ccenv.sh during ./configure,  */
02e59c
/* and they have accordingly been added to CFLAGS_OS.                 */
02e59c
/**********************************************************************/
02e59c
02e59c
#ifdef __PE__
02e59c
#define tbnf_hidden
02e59c
#else
02e59c
#ifdef _ATTR_VISIBILITY_HIDDEN
02e59c
#define tbnf_hidden _ATTR_VISIBILITY_HIDDEN
02e59c
#else
02e59c
#define tbnf_hidden
02e59c
#endif
02e59c
#endif
02e59c
02e59c
#endif