summaryrefslogtreecommitdiff
path: root/fipstest.cpp
diff options
context:
space:
mode:
authorBrett Hall <bhall@wyatt.com>2016-03-29 10:08:48 -0700
committerBrett Hall <bhall@wyatt.com>2016-03-29 10:08:48 -0700
commit109f5a7a3218707fd6f71ff8f5ef85b1ad42689e (patch)
tree7035a32796d9cb92ef06a6bb06970e9df9d6a36c /fipstest.cpp
parent34a34967ac560c1801bf3845dbac3ac63c1d4c05 (diff)
downloadcryptopp-git-109f5a7a3218707fd6f71ff8f5ef85b1ad42689e.tar.gz
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.
Diffstat (limited to 'fipstest.cpp')
-rw-r--r--fipstest.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/fipstest.cpp b/fipstest.cpp
index 08d752e7..604ef69f 100644
--- a/fipstest.cpp
+++ b/fipstest.cpp
@@ -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