mirror of
https://github.com/isar/libmdbx.git
synced 2025-12-18 05:42:22 +08:00
mdbx-windows: refine assertion handling for debug builds.
This commit is contained in:
committed by
Леонид Юрьев (Leonid Yuriev)
parent
9d7c5243d2
commit
0c294c6386
17
src/osal.c
17
src/osal.c
@@ -110,6 +110,23 @@ typedef struct _FILE_PROVIDER_EXTERNAL_INFO_V1 {
|
|||||||
#define ERROR_NOT_CAPABLE 775L
|
#define ERROR_NOT_CAPABLE 775L
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef _CRT_ASSERT
|
||||||
|
#define _CRT_ASSERT 2
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef _ACRTIMP
|
||||||
|
#if defined _CRTIMP && !defined _VCRT_DEFINED_CRTIMP
|
||||||
|
#define _ACRTIMP _CRTIMP
|
||||||
|
#elif !defined _CORECRT_BUILD && defined _DLL
|
||||||
|
#define _ACRTIMP __declspec(dllimport)
|
||||||
|
#else
|
||||||
|
#define _ACRTIMP
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
_ACRTIMP int __cdecl _CrtDbgReport(_In_ int _ReportType, _In_opt_z_ char const *_FileName, _In_ int _Linenumber,
|
||||||
|
_In_opt_z_ char const *_ModuleName, _In_opt_z_ char const *_Format, ...);
|
||||||
|
|
||||||
#endif /* _WIN32 || _WIN64 */
|
#endif /* _WIN32 || _WIN64 */
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------------*/
|
||||||
|
|||||||
Reference in New Issue
Block a user