
#ifndef MGBA_EXPORT_H
#define MGBA_EXPORT_H

#ifdef BUILD_STATIC
#  define MGBA_EXPORT
#  define MGBA_NO_EXPORT
#else
#  ifndef MGBA_EXPORT
#    ifdef mgba_EXPORTS
        /* We are building this library */
#      define MGBA_EXPORT __attribute__((visibility("default")))
#    else
        /* We are using this library */
#      define MGBA_EXPORT __attribute__((visibility("default")))
#    endif
#  endif

#  ifndef MGBA_NO_EXPORT
#    define MGBA_NO_EXPORT __attribute__((visibility("hidden")))
#  endif
#endif

#ifndef MGBA_DEPRECATED
#  define MGBA_DEPRECATED __attribute__ ((__deprecated__))
#endif

#ifndef MGBA_DEPRECATED_EXPORT
#  define MGBA_DEPRECATED_EXPORT MGBA_EXPORT MGBA_DEPRECATED
#endif

#ifndef MGBA_DEPRECATED_NO_EXPORT
#  define MGBA_DEPRECATED_NO_EXPORT MGBA_NO_EXPORT MGBA_DEPRECATED
#endif

#if 0 /* DEFINE_NO_DEPRECATED */
#  ifndef MGBA_NO_DEPRECATED
#    define MGBA_NO_DEPRECATED
#  endif
#endif

#endif /* MGBA_EXPORT_H */
