Fix VS2010 and "error C2065: uint32_t: undeclared identifier" (GH #608)

We could fix aria.cpp by using word32. However, NaCl gear uses int64_t and we don't have a typedef setup for it. So we will need <cstdint> later for NaCl
pull/611/head
Jeffrey Walton 2018-03-27 19:18:44 -04:00
parent 71ea29d893
commit 506f90bcc8
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 2 additions and 0 deletions

View File

@ -660,6 +660,7 @@ public:
/// modulo the Integer <tt>n</tt>. If no Integer exists then Integer 0 is returned. /// modulo the Integer <tt>n</tt>. If no Integer exists then Integer 0 is returned.
/// \sa a_times_b_mod_c() and a_exp_b_mod_c() /// \sa a_times_b_mod_c() and a_exp_b_mod_c()
Integer InverseMod(const Integer &n) const; Integer InverseMod(const Integer &n) const;
/// \brief Calculate multiplicative inverse /// \brief Calculate multiplicative inverse
/// \param n the modulus /// \param n the modulus
/// \returns a word <tt>*this % n</tt>. /// \returns a word <tt>*this % n</tt>.

View File

@ -52,6 +52,7 @@ namespace std {
#include <cstdlib> #include <cstdlib>
#include <cstddef> #include <cstddef>
#include <cstring> #include <cstring>
#include <cstdint>
#include <climits> #include <climits>
#include <cmath> #include <cmath>