VISR  0.11.1
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_OBJECTMODEL_EXPORT_SYMBOLS_HPP_INCLUDED
4 #define VISR_OBJECTMODEL_EXPORT_SYMBOLS_HPP_INCLUDED
5 
13 // For unknown reasons this definition does not becaome visible here:
14 #ifndef VISR_OBJECTMODEL_STATIC_LIBRARY
15 #ifdef _MSC_VER // Windows platform
16 #ifdef VISR_BUILD_OBJECTMODEL_LIBRARY
17 #define VISR_OBJECTMODEL_LIBRARY_SYMBOL __declspec(dllexport)
18 #else
19 #define VISR_OBJECTMODEL_LIBRARY_SYMBOL __declspec(dllimport)
20 #endif // #ifdef VISR_BUILD_OBJECTMODEL_LIBRARY
21 #elif defined(__GNUC__)
22 
23 // Unix platforms (Linux and Mac OS X)
24 #define VISR_OBJECTMODEL_LIBRARY_SYMBOL __attribute__((visibility("default")))
25 
26 #else
27 #error "Platform does not support symbol export."
28 #endif // #ifdef _WIN32
29 
30 #else // #ifdef VISR_OBJECTMODEL_STATIC_LIBRARY
31 #define VISR_OBJECTMODEL_LIBRARY_SYMBOL // empty
32 #endif // #ifdef VISR_OBJECTMODEL_STATIC_LIBRARY
33 
34 #endif // #ifndef VISR_OBJECTMODEL_EXPORT_SYMBOLS_HPP_INCLUDED