00001 // 00002 // Copyright (c) 2003 00003 // Paul Hamilton; pHamtec P/L 00004 // 00005 // Permission to use, copy, modify, distribute and sell this software 00006 // and its documentation for any purpose is hereby granted without fee, 00007 // provided that the above copyright notice appears in all copies and 00008 // that both the copyright notice and this permission notice appear in 00009 // supporting documentation. No representations are made about the 00010 // suitability of this software for any purpose. It is provided "as is" 00011 // without express or implied warranty. 00012 // 00013 // config.hpp 00014 // 00015 // 8-Sep-2003 phamilton Created 00016 // 00017 00018 #ifndef incPERSIST_CONFIG 00019 #define incPERSIST_CONFIG 00020 00021 /***************************************************************************** 00022 * 00023 * Set up dll import/export options: 00024 * 00025 ****************************************************************************/ 00026 00027 #if defined(BOOST_HAS_DECLSPEC) && defined(BOOST_DYN_LINK) 00028 # if defined(PERSIST_IN_LIBRARY_SOURCE) 00029 # define PERSIST_DECL __declspec(dllexport) 00030 # define PERSIST_BUILD_DLL 00031 # else 00032 # define PERSIST_DECL __declspec(dllimport) 00033 # endif 00034 #endif 00035 00036 #ifndef PERSIST_DECL 00037 # define PERSIST_DECL 00038 #endif 00039 00040 #endif // incPERSIST_CONFIG