odil
C++11libraryfortheDICOMstandard
odil.h
1 #pragma once
2 
3 #ifdef WIN32
4 # define EXPORT_DYNAMIC_LIBRARY __declspec(dllexport)
5 # define IMPORT_DYNAMIC_LIBRARY __declspec(dllimport)
6 // disable warning: 'identifier': class 'type' needs to have dll-interface to be
7 // used by clients of class 'type2'
8 // disable warning: non - DLL-interface classkey 'identifier' used as base for
9 // DLL-interface classkey 'identifier'
10 #pragma warning( disable : 4251 4275 )
11 #else // WIN32
12 # define EXPORT_DYNAMIC_LIBRARY
13 # define IMPORT_DYNAMIC_LIBRARY
14 #endif // WIN32
15 
16 #ifdef BUILDING_ODIL
17 # define ODIL_API EXPORT_DYNAMIC_LIBRARY
18 #else // BUILDING_ODIL
19 # define ODIL_API IMPORT_DYNAMIC_LIBRARY
20 #endif // BUILDING_ODIL