VISR  0.12.0
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_MAXSUPPORT_EXPORT_SYMBOLS_HPP_INCLUDED
4 #define VISR_MAXSUPPORT_EXPORT_SYMBOLS_HPP_INCLUDED
5 
11 #ifdef VISR_BUILD_MAXSUPPORT_SHARED_LIBRARY
12 
13 #ifdef _MSC_VER // Windows platform
14 #ifdef VISR_BUILD_MAXSUPPORT_LIBRARY
15 #define VISR_MAXSUPPORT_LIBRARY_SYMBOL __declspec(dllexport)
16 #else
17 #define VISR_MAXSUPPORT_LIBRARY_SYMBOL __declspec(dllimport)
18 #endif // #ifdef VISR_BUILD_MAXSUPPORT_LIBRARIES
19 #elif defined(__GNUC__)
20 
21 // Unix platforms (Linux and Mac OS X)
22 #define VISR_MAXSUPPORT_LIBRARY_SYMBOL __attribute__((visibility("default")))
23 
24 #else
25 #error "Platform does not support symbol export."
26 #endif // #ifdef _WIN32
27 
28 #else // VISR_BUILD_MAXSUPPORT_SHARED_LIBRARY
29 
30 #define VISR_MAXSUPPORT_LIBRARY_SYMBOL // expand to empty string
31 
32 #endif // VISR_BUILD_MAXSUPPORT_SHARED_LIBRARY
33 
34 #endif // #ifndef VISR_MAXSUPPORT_EXPORT_SYMBOLS_HPP_INCLUDED