mpccontroller_global.h 634 B

123456789101112131415161718
  1. #ifndef MPCCONTROLLER_GLOBAL_H
  2. #define MPCCONTROLLER_GLOBAL_H
  3. #if defined(_MSC_VER) || defined(WIN64) || defined(_WIN64) || defined(__WIN64__) || defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
  4. # define Q_DECL_EXPORT __declspec(dllexport)
  5. # define Q_DECL_IMPORT __declspec(dllimport)
  6. #else
  7. # define Q_DECL_EXPORT __attribute__((visibility("default")))
  8. # define Q_DECL_IMPORT __attribute__((visibility("default")))
  9. #endif
  10. #if defined(MPCCONTROLLER_LIBRARY)
  11. # define MPCCONTROLLER_EXPORT Q_DECL_EXPORT
  12. #else
  13. # define MPCCONTROLLER_EXPORT Q_DECL_IMPORT
  14. #endif
  15. #endif // MPCCONTROLLER_GLOBAL_H