
#ifndef INERTIA_API_H
#define INERTIA_API_H

#ifdef SHARED_EXPORTS_BUILT_AS_STATIC
#  define INERTIA_API
#  define INERTIA_NO_EXPORT
#else
#  ifndef INERTIA_API
#    ifdef inertia_EXPORTS
        /* We are building this library */
#ifdef _WIN32
#      define INERTIA_API __declspec(dllexport)
#else
#      define INERTIA_API __attribute__((visibility("default")))
#endif
#    else
        /* We are using this library */
#ifdef _WIN32
#      define INERTIA_API __declspec(dllimport)
#else
#      define INERTIA_API __attribute__((visibility("default")))
#endif
#    endif
#  endif

#  ifndef INERTIA_NO_EXPORT
#ifdef _WIN32
#    define INERTIA_NO_EXPORT
#else
#    define INERTIA_NO_EXPORT __attribute__((visibility("hidden")))
#endif
#  endif
#endif

#ifndef INERTIA_DEPRECATED
#ifdef _MSC_VER
#  define INERTIA_DEPRECATED __declspec(deprecated)
#else
#  define INERTIA_DEPRECATED __attribute__ ((__deprecated__))
#endif
#endif

#ifndef INERTIA_DEPRECATED_EXPORT
#  define INERTIA_DEPRECATED_EXPORT INERTIA_API INERTIA_DEPRECATED
#endif

#ifndef INERTIA_DEPRECATED_NO_EXPORT
#  define INERTIA_DEPRECATED_NO_EXPORT INERTIA_NO_EXPORT INERTIA_DEPRECATED
#endif

#endif /* INERTIA_API_H */
