aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/cpp/util/md5.cc
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2017-07-27 15:51:39 +0200
committerGravatar Jakob Buchgraber <buchgr@google.com>2017-07-27 16:26:30 +0200
commit0f3481ba6364f24ef76b839bdde06ae7883c9bd9 (patch)
tree2dffea4d43a38aeb6fdaf0052a7ae6b60ea29872 /src/main/cpp/util/md5.cc
parent92caf38a4ae74889391eefa9b7196804d8f2c948 (diff)
Include <cinttypes> instead of <stdint.h>
cinttypes is the C++ header that should replace stdint.h. Not using the correct header was leading to compilation error on CentOS 6.7 Fixes #3455. To be cherry-picked for #3375. Change-Id: I6df22134a4a4902ec9fa7ecdfaeb5408eacf3564 PiperOrigin-RevId: 163334651
Diffstat (limited to 'src/main/cpp/util/md5.cc')
-rw-r--r--src/main/cpp/util/md5.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/cpp/util/md5.cc b/src/main/cpp/util/md5.cc
index 770378533a..0cb5a864aa 100644
--- a/src/main/cpp/util/md5.cc
+++ b/src/main/cpp/util/md5.cc
@@ -39,10 +39,11 @@
#include "src/main/cpp/util/md5.h"
-#include <stdint.h>
#include <string.h> // for memcpy
#include <stddef.h> // for ofsetof
+#include <cinttypes>
+
#if !_STRING_ARCH_unaligned
# ifdef _LP64
# define UNALIGNED_P(p) (reinterpret_cast<uint64_t>(p) % \