Add multiple inclusion prevention macro

This commit is contained in:
Vinnie Falco
2013-05-22 15:01:55 -07:00
parent 89eb0bc6f0
commit 0159acbf5a

View File

@@ -1,4 +1,7 @@
#ifndef BIGNUM64_H
#define BIGNUM64_H
// Support 64-bit word operations on 32-bit platforms // Support 64-bit word operations on 32-bit platforms
static int BN_add_word64(BIGNUM *a, uint64 w) static int BN_add_word64(BIGNUM *a, uint64 w)
@@ -26,3 +29,5 @@ static uint64 BN_div_word64(BIGNUM *a, uint64 w)
CAutoBN_CTX ctx; CAutoBN_CTX ctx;
return (BN_div(a, NULL, a, &bn, ctx) == 1) ? 0 : ((uint64)-1); return (BN_div(a, NULL, a, &bn, ctx) == 1) ? 0 : ((uint64)-1);
} }
#endif