4 #define __STDC_WANT_LIB_EXT1__ 1 7 #if defined(__cplusplus) || defined(c_plusplus) 8 # define ICEDB_BEGIN_DECL 9 # define ICEDB_END_DECL 11 # define ICEDB_BEGIN_DECL 12 # define ICEDB_END_DECL 15 #if defined(__cplusplus) || defined(c_plusplus) 16 # define ICEDB_BEGIN_DECL_C extern "C" { 17 # define ICEDB_END_DECL_C } 18 # define ICEDB_CALL_C extern "C" 20 # define ICEDB_BEGIN_DECL_C 21 # define ICEDB_END_DECL_C 25 #if defined(__cplusplus) || defined(c_plusplus) 26 # define ICEDB_BEGIN_DECL_CPP 27 # define ICEDB_END_DECL_CPP 28 # define ICEDB_CALL_CPP 30 # define ICEDB_BEGIN_DECL_CPP extern "CPP" { 31 # define ICEDB_END_DECL_CPP } 32 # define ICEDB_CALL_CPP extern "CPP" 55 #if defined _MSC_FULL_VER 56 #define COMPILER_EXPORTS_VERSION_A_ICEDB 57 #elif defined __INTEL_COMPILER 58 #define COMPILER_EXPORTS_VERSION_B_ICEDB 59 #elif defined __GNUC__ 60 #define COMPILER_EXPORTS_VERSION_B_ICEDB 61 #elif defined __MINGW32__ 62 #define COMPILER_EXPORTS_VERSION_B_ICEDB 63 #elif defined __clang__ 64 #define COMPILER_EXPORTS_VERSION_B_ICEDB 66 #define COMPILER_EXPORTS_VERSION_UNKNOWN 70 #define SHARED_EXPORT_ICEDB 71 #define SHARED_IMPORT_ICEDB 75 #if defined COMPILER_EXPORTS_VERSION_A_ICEDB 76 #undef SHARED_EXPORT_ICEDB 77 #undef SHARED_IMPORT_ICEDB 78 #define SHARED_EXPORT_ICEDB __declspec(dllexport) 79 #define SHARED_IMPORT_ICEDB __declspec(dllimport) 80 #elif defined COMPILER_EXPORTS_VERSION_B_ICEDB 81 #undef SHARED_EXPORT_ICEDB 82 #undef SHARED_IMPORT_ICEDB 85 #define SHARED_EXPORT_ICEDB __attribute__ ((visibility("default"))) 86 #define SHARED_IMPORT_ICEDB __attribute__ ((visibility("default"))) 87 #define HIDDEN_ICEDB __attribute__ ((visibility("hidden"))) 88 #define PRIVATE_ICEDB __attribute__ ((visibility("internal"))) 90 #pragma message("defs.h warning: compiler is unrecognized") 96 #define ICEDB_OS_LINUX 98 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__DragonFly__) || defined(__APPLE__) 103 #define ICEDB_OS_WINDOWS 105 #if !defined(_WIN32) && !defined(ICEDB_OS_UNIX) && !defined(ICEDB_OS_LINUX) 106 #define ICEDB_OS_UNSUPPORTED 118 #if EXPORTING_libicedb 119 #define DL_ICEDB SHARED_EXPORT_ICEDB 121 #define DL_ICEDB SHARED_IMPORT_ICEDB 124 #define DL_ICEDB SHARED_EXPORT_ICEDB 127 #define ICEDB_SYMBOL_SHARED DL_ICEDB 128 #define ICEDB_SYMBOL_PRIVATE HIDDEN_ICEDB 132 #define ICEDB_DEBUG_FSIG __FUNCSIG__ 134 #if defined(__GNUC__) || defined(__clang__) 135 #if defined(__PRETTY_FUNCTION__) 136 #define ICEDB_DEBUG_FSIG __PRETTY_FUNCTION__ 137 #elif defined(__func__) 138 #define ICEDB_DEBUG_FSIG __func__ 139 #elif defined(__FUNCTION__) 140 #define ICEDB_DEBUG_FSIG __FUNCTION__ 142 #define ICEDB_DEBUG_FSIG "" 146 #define ICEDB_WIDEN2(x) L ## x 147 #define ICEDB_WIDEN(x) ICEDB_WIDEN2(x) 151 #define ICEDB_DEBUG_RAISE_EXCEPTION() ICEDB_DEBUG_RAISE_EXCEPTION_HANDLER_WC( ICEDB_WIDEN(__FILE__), (int)__LINE__, ICEDB_WIDEN(ICEDB_DEBUG_FSIG)); 153 #define ICEDB_DEBUG_RAISE_EXCEPTION_HANDLER ICEDB_DEBUG_RAISE_EXCEPTION_HANDLER_A 155 #define ICEDB_GLOBAL_ERROR_TODO 999 156 #if defined(__STDC_LIB_EXT1__) || defined(__STDC_SECURE_LIB__) 157 #define ICEDB_USING_SECURE_STRINGS 1 158 #define ICEDB_DEFS_COMPILER_HAS_FPRINTF_S 159 #define ICEDB_DEFS_COMPILER_HAS_FPUTS_S 161 #define _CRT_SECURE_NO_WARNINGS 166 #define ICEDB_THREAD_LOCAL __declspec( thread ) 169 #define ICEDB_THREAD_LOCAL __thread 173 #if defined _MSC_FULL_VER 174 #pragma warning(push) 175 #pragma warning( disable : 4003 ) // Bug in boost with VS2016.3 176 #pragma warning( disable : 4251 ) // DLL interface 177 #pragma warning( disable : 4275 ) // DLL interface 182 #define ICEDB_OPTIONAL 189 #ifndef ICEDB_NO_ERRATA 191 #ifndef _HAS_AUTO_PTR_ETC 192 #define _HAS_AUTO_PTR_ETC (!_HAS_CXX17) #define ICEDB_BEGIN_DECL_C
ICEDB_SYMBOL_SHARED void ICEDB_DEBUG_RAISE_EXCEPTION_HANDLER_A(const char *, int, const char *)
ICEDB_SYMBOL_SHARED void ICEDB_DEBUG_RAISE_EXCEPTION_HANDLER_WC(const wchar_t *, int, const wchar_t *)
#define ICEDB_SYMBOL_SHARED