Pull in the SSE2-specific LTC/LTM libs for SSE2 builds (again, this is a hack --...
authorMarc Cannon <vyhdycokio@gmail.com>
Fri, 25 Jan 2013 03:22:24 +0000 (22:22 -0500)
committerPat Mac <itgpmc@gmail.com>
Thu, 7 Feb 2013 09:36:20 +0000 (01:36 -0800)
src/CryptHelpers.cpp

index 8088804..6a95f7f 100644 (file)
@@ -4,11 +4,6 @@
 #include "RageUtil.h"
 #include "RageLog.h"
 
-// crypt headers
-#define LTM_DESC
-#define SHA1_DESC
-#define YARROW_DESC
-
 // tomcrypt want to #define ENDIAN_LITTLE, which is also in our own config.h.  We're not using it in this file anyway.
 #undef ENDIAN_LITTLE
 
                #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")
+               #if defined(WITH_SSE2)
+                       #pragma comment(lib, "libtomcrypt/Release-SSE2/tomcrypt.lib")
+                       #pragma comment(lib, "libtommath/Release-SSE2/tommath.lib")
+               #else
+                       #pragma comment(lib, "libtomcrypt/Release/tomcrypt.lib")
+                       #pragma comment(lib, "libtommath/Release/tommath.lib")
+               #endif
        #endif
 #endif