From 69cee3394c742f8c5d4df5a7df9fe2a802bdc708 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Thu, 28 Sep 2017 17:34:31 +0900 Subject: [PATCH] [win] add library for bn512 to autolink --- include/mcl/bn.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/mcl/bn.h b/include/mcl/bn.h index 3b357c2..d8da9e1 100644 --- a/include/mcl/bn.h +++ b/include/mcl/bn.h @@ -18,11 +18,13 @@ #define MCLBN_DLL_API __declspec(dllexport) #else #define MCLBN_DLL_API __declspec(dllimport) -#ifndef MCL_NO_AUTOLINK +#ifndef MCLBN_NO_AUTOLINK #if MCLBN_FP_UNIT_SIZE == 4 #pragma comment(lib, "mclbn256.lib") - #else + #elif MCLBN_FP_UNIT_SIZE == 6 #pragma comment(lib, "mclbn384.lib") + #else + #pragma comment(lib, "mclbn512.lib") #endif #endif #endif