Pull in libtommath/libtomcrypt with preprocessing pragmas for now
authorMarc Cannon <vyhdycokio@gmail.com>
Sat, 19 Jan 2013 15:17:04 +0000 (10:17 -0500)
committerPat Mac <itgpmc@gmail.com>
Thu, 7 Feb 2013 09:36:17 +0000 (01:36 -0800)
src/CryptHelpers.cpp

index 9d86277..8088804 100644 (file)
 
 #include "libtomcrypt/src/headers/tomcrypt.h"
 
+/* XXX huge hack to get stuff working */
+#if defined(WIN32)
+       #if defined(_DEBUG)
+               #pragma comment(lib, "libtomcrypt/Debug/tomcrypt.lib")
+               #pragma comment(lib, "libtommath/Debug/tommath.lib")
+       #else
+               #pragma comment(lib, "libtomcrypt/Release/tomcrypt.lib")
+               #pragma comment(lib, "libtommath/Release/tommath.lib")
+       #endif
+#endif
+
 static const ltc_prng_descriptor *g_PRNGDesc; // HACK: this _MIGHT_ be better off as g_SigHashDesc or something
 static const ltc_hash_descriptor *g_SHA1Desc;