Blame src/internal/perk_visibility_impl.h

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