
#ifndef B2_API_H
#define B2_API_H

#ifdef B2_STATIC
#  define B2_API
#  define B2_NO_EXPORT
#else
#  ifndef B2_API
#    ifdef box2d_EXPORTS
        /* We are building this library */
#      define B2_API __attribute__((visibility("default")))
#    else
        /* We are using this library */
#      define B2_API __attribute__((visibility("default")))
#    endif
#  endif

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

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

#ifndef B2_DEPRECATED_EXPORT
#  define B2_DEPRECATED_EXPORT B2_API B2_DEPRECATED
#endif

#ifndef B2_DEPRECATED_NO_EXPORT
#  define B2_DEPRECATED_NO_EXPORT B2_NO_EXPORT B2_DEPRECATED
#endif

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

#endif /* B2_API_H */
