llvmpipe: Yet another hack to get release LLVM static libraries to link in debug...
authorJosé Fonseca <jfonseca@vmware.com>
Sun, 10 Jan 2010 11:20:11 +0000 (11:20 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Sun, 10 Jan 2010 11:20:11 +0000 (11:20 +0000)
src/gallium/drivers/llvmpipe/lp_bld_misc.cpp

index d3f78c06d92a03c48c7c7c5b80435bcec08811ac..6e79438ead073dadb4fc621e2a4687ddd4742cde 100644 (file)
@@ -59,3 +59,17 @@ LLVMInitializeNativeTarget(void)
 
 
 #endif
+
+
+/* 
+ * Hack to allow the linking of release LLVM static libraries on a debug build.
+ *
+ * See also:
+ * - http://social.msdn.microsoft.com/Forums/en-US/vclanguage/thread/7234ea2b-0042-42ed-b4e2-5d8644dfb57d
+ */
+#if defined(_MSC_VER) && defined(_DEBUG)
+#include <crtdefs.h>
+extern "C" {
+   _CRTIMP void __cdecl _invalid_parameter_noinfo(void) {}
+}
+#endif