aboutsummaryrefslogtreecommitdiffstats
path: root/include/mcl/bn.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mcl/bn.h')
-rw-r--r--include/mcl/bn.h6
1 files 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