don't use rdrand on windows

fix #99
This commit is contained in:
Vincent Hanquez 2016-09-15 20:50:55 +01:00
parent 32e77e6f66
commit 571486be00

View File

@ -245,7 +245,7 @@ Library
if arch(x86_64)
CPP-options: -DARCH_X86_64
if flag(support_rdrand) && (arch(i386) || arch(x86_64))
if flag(support_rdrand) && (arch(i386) || arch(x86_64)) && !os(windows)
CPP-options: -DSUPPORT_RDRAND
Other-modules: Crypto.Random.Entropy.RDRand
c-sources: cbits/cryptonite_rdrand.c