Skip to content

Commit

Permalink
define byte as recomended by cryptopp600
Browse files Browse the repository at this point in the history
  • Loading branch information
polmr committed Feb 1, 2018
1 parent 0589197 commit 222594e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/mega/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ typedef int64_t m_off_t;
// opaque filesystem fingerprint
typedef uint64_t fsfp_t;

#if USE_CRYPTOPP && (CRYPTOPP_VERSION >= 600) && (__cplusplus >= 201103L)
using byte = CryptoPP::byte;
#else
typedef unsigned char byte;
#endif

#ifdef USE_CRYPTOPP
#include "mega/crypto/cryptopp.h"
#else
Expand Down

0 comments on commit 222594e

Please sign in to comment.