diff options
author | Zachary Michaels <mikezackles@gmail.com> | 2014-08-06 13:07:36 -0400 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2014-09-15 22:33:10 +0200 |
commit | cf91545734134866e93fa8cc8d36a7b8cf45bafb (patch) | |
tree | 81f1faa141233830deb933a5cfdaf3c454d58169 | |
parent | Change Windows include to windows (diff) | |
download | monero-cf91545734134866e93fa8cc8d36a7b8cf45bafb.tar.xz |
Correct includes for mingw in slow-hash
This needs testing
-rw-r--r-- | src/crypto/slow-hash.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/crypto/slow-hash.c b/src/crypto/slow-hash.c index b33ef0f47..2d3197d62 100644 --- a/src/crypto/slow-hash.c +++ b/src/crypto/slow-hash.c @@ -47,6 +47,14 @@ #if !defined(RDATA_ALIGN16) #define RDATA_ALIGN16 __declspec(align(16)) #endif +#elif defined(__MINGW32__) +#include <intrin.h> +#include <windows.h> +#define STATIC static +#define INLINE inline +#if !defined(RDATA_ALIGN16) +#define RDATA_ALIGN16 __attribute__ ((aligned(16))) +#endif #else #include <wmmintrin.h> #include <sys/mman.h> |