VISR  0.11.7
Versatile Interactive Scene Renderer
export_symbols.hpp
Go to the documentation of this file.
1 /* Copyright Institute of Sound and Vibration Research - All rights reserved */
2 
3 #ifndef VISR_PYTHONCOMPONENTS_EXPORT_SYMBOLS_HPP_INCLUDED
4 #define VISR_PYTHONCOMPONENTS_EXPORT_SYMBOLS_HPP_INCLUDED
5 
13 #ifndef VISR_PYTHONCOMPONENTS_STATIC_LIBRARY
14 #ifdef _MSC_VER // Windows platform
15 #ifdef VISR_BUILD_PYTHONCOMPONENTS_LIBRARY
16 #define VISR_PYTHONCOMPONENTS_LIBRARY_SYMBOL __declspec(dllexport)
17 #else
18 #define VISR_PYTHONCOMPONENTS_LIBRARY_SYMBOL __declspec(dllimport)
19 #endif // #ifdef VISR_BUILD_PYTHONCOMPONENTS_LIBRARY
20 #elif defined(__GNUC__)
21 
22 // Unix platforms (Linux and Mac OS X)
23 #define VISR_PYTHONCOMPONENTS_LIBRARY_SYMBOL __attribute__((visibility("default")))
24 
25 #else
26 #error "Platform does not support symbol export."
27 #endif // #ifdef _WIN32
28 
29 #else // #ifdef VISR_PYTHONCOMPONENTS_STATIC_LIBRARY
30 #define VISR_PYTHONCOMPONENTS_LIBRARY_SYMBOL // empty
31 #endif // #ifdef VISR_PYTHONCOMPONENTS_STATIC_LIBRARY
32 
33 #endif // #ifndef VISR_PYTHONCOMPONENTS_EXPORT_SYMBOLS_HPP_INCLUDED