CppDB
|
00001 00002 // 00003 // Copyright (C) 2010-2011 Artyom Beilis (Tonkikh) <artyomtnk@yahoo.com> 00004 // 00005 // Distributed under: 00006 // 00007 // the Boost Software License, Version 1.0. 00008 // (See accompanying file LICENSE_1_0.txt or copy at 00009 // http://www.boost.org/LICENSE_1_0.txt) 00010 // 00011 // or (at your opinion) under: 00012 // 00013 // The MIT License 00014 // (See accompanying file MIT.txt or a copy at 00015 // http://www.opensource.org/licenses/mit-license.php) 00016 // 00018 #ifndef CPPDB_DEFS_H 00019 #define CPPDB_DEFS_H 00020 00021 #if defined(WIN32) || defined(_WIN32) || defined(__WIN32) || defined(__CYGWIN__) 00022 # if defined(DLL_EXPORT) || defined(CPPDB_EXPORTS) || defined(CPPDB_DRIVER_EXPORTS) 00023 # ifdef CPPDB_SOURCE 00024 # define CPPDB_API __declspec(dllexport) 00025 # else 00026 # define CPPDB_API __declspec(dllimport) 00027 # endif 00028 # endif 00029 # if defined(DLL_EXPORT) || defined(CPPDB_DRIVER_EXPORTS) 00030 # ifdef CPPDB_DRIVER_SOURCE 00031 # define CPPDB_DRIVER_API __declspec(dllexport) 00032 # else 00033 # define CPPDB_DRIVER_API __declspec(dllimport) 00034 # endif 00035 # endif 00036 #endif 00037 00038 00039 #ifndef CPPDB_API 00040 # define CPPDB_API 00041 #endif 00042 00043 #ifndef CPPDB_DRIVER_API 00044 # define CPPDB_DRIVER_API 00045 #endif 00046 00047 #endif