You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ovviz_defines.h 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #pragma once
  2. #define OV_TypeId_Color OpenViBE::CIdentifier(0x7F45A2A9, 0x7DB12219)
  3. #define OV_TypeId_ColorGradient OpenViBE::CIdentifier(0x3D3C7C7F, 0xEF0E7129)
  4. #define OVP_ClassId_Plugin_VisualizationCtx OpenViBE::CIdentifier(0x05A7171D, 0x78E4FE3C)
  5. #define OVVIZ_MetadataIdentifier_VisualizationTree OpenViBE::CIdentifier(0x3BCCE5D2, 0x43F2D968)
  6. //___________________________________________________________________//
  7. // //
  8. // API Definition //
  9. //___________________________________________________________________//
  10. // //
  11. // Taken from
  12. // - http://people.redhat.com/drepper/dsohowto.pdf
  13. // - http://www.nedprod.com/programs/gccvisibility.html
  14. #if defined OVVIZ_Shared
  15. #if defined TARGET_OS_Windows
  16. #define OVVIZ_API_Export __declspec(dllexport)
  17. #define OVVIZ_API_Import __declspec(dllimport)
  18. #elif defined TARGET_OS_Linux || defined TARGET_OS_MacOS
  19. #define OVVIZ_API_Export __attribute__((visibility("default")))
  20. #define OVVIZ_API_Import __attribute__((visibility("default")))
  21. #else
  22. #define OVVIZ_API_Export
  23. #define OVVIZ_API_Import
  24. #endif
  25. #else
  26. #define OVVIZ_API_Export
  27. #define OVVIZ_API_Import
  28. #endif
  29. #if defined OVVIZ_Exports
  30. #define OVVIZ_API OVVIZ_API_Export
  31. #else
  32. #define OVVIZ_API OVVIZ_API_Import
  33. #endif