Skip to content

Commit b6ed9fc

Browse files
authored
Changed setup.py to build hash support on Windows (VirusTotal#167)
1 parent 2899640 commit b6ed9fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,9 @@ def run(self):
240240
module.define_macros.append(('HASH_MODULE', '1'))
241241
module.define_macros.append(('HAVE_LIBCRYPTO', '1'))
242242
module.libraries.append('crypto')
243+
elif building_for_windows:
244+
module.define_macros.append(('HASH_MODULE', '1'))
245+
module.define_macros.append(('HAVE_WINCRYPT_H', '1'))
243246
else:
244247
exclusions.append('yara/libyara/modules/hash/hash.c')
245248

0 commit comments

Comments
 (0)