/* * \file RMF/RMF_config.h * \brief Provide macros to mark functions and classes as exported * from a DLL/.so, and to set up namespaces * * Copyright 2007-2012 IMP Inventors. All rights reserved. * */ #ifndef RMF_CONFIG_H #define RMF_CONFIG_H #ifdef _MSC_VER #ifdef RMF_EXPORTS #define RMFEXPORT __declspec(dllexport) #else // EXPORTS #define RMFEXPORT __declspec(dllimport) #endif // EXPORTS #else // _MSC_VER #define RMFEXPORT #endif // _MSC_VER #define RMF_VERSION_MAJOR @RMF_VERSION_MAJOR@ #define RMF_VERSION_MINOR @RMF_VERSION_MINOR@ #define RMF_HAS_DEBUG_VECTOR @RMF_HAS_DEBUG_VECTOR@ #define RMF_HAS_LOG4CXX @RMF_HAS_LOG4CXX@ #define RMF_VECTOR_DECL(Name) namespace RMF {\ class Name;\ typedef std::vector Name##s;\ } #define RMF_VECTOR_DEF(Name) #define RMF_TEMPLATE_DECL(TemplateName, TemplateArg, Name) \ namespace RMF {\ typedef TemplateName Name;\ typedef std::vector Name##s;\ } #define RMF_TEMPLATE_DEF(TemplateName, TemplateArg, Name) #ifdef _MSC_VER #pragma warning(disable: 4003) #endif #include #endif /* RMF_CONFIG_H */