Fixed linker error when using VS2015 /MD

Without this change links under Visual Studio 2015 using the
/MDd switch ("multithreaded debug dll" c-runtime) fail with a "LNK2005:
__crt_debugger_hook already defined in msvcrtd.lib(utility_desktop.obj)"
error.
pull/151/head
Brett Hall 2016-03-29 10:08:48 -07:00
parent 34a34967ac
commit 109f5a7a32
1 changed files with 4 additions and 0 deletions

View File

@ -21,7 +21,11 @@
#else
#define _CRT_DEBUGGER_HOOK __crt_debugger_hook
#endif
#if _MSC_VER < 1900
extern "C" {_CRTIMP void __cdecl _CRT_DEBUGGER_HOOK(int);}
#else
extern "C" {void __cdecl _CRT_DEBUGGER_HOOK(int); }
#endif
#endif
#endif