update_engine: Include base/macros.h instead of base/basictypes.h
update_engine no longer uses the integer types from base/basictypes.h.
It should simply include base/macros.h for the DISALLOW_COPY_AND_ASSIGN
macro instead.
BUG=None
TEST=`FEATURES=test emerge-$BOARD update_engine`
Change-Id: Idf18bc69339b7170122b289342c724c862454062
Reviewed-on: https://chromium-review.googlesource.com/216140
Tested-by: Ben Chan <[email protected]>
Reviewed-by: Alex Deymo <[email protected]>
Commit-Queue: Ben Chan <[email protected]>
diff --git a/payload_constants.h b/payload_constants.h
index 58e7572..30dde5e 100644
--- a/payload_constants.h
+++ b/payload_constants.h
@@ -5,7 +5,9 @@
#ifndef UPDATE_ENGINE_PAYLOAD_CONSTANTS_H_
#define UPDATE_ENGINE_PAYLOAD_CONSTANTS_H_
-#include <base/basictypes.h>
+#include <stdint.h>
+
+#include <limits>
namespace chromeos_update_engine {
@@ -14,8 +16,8 @@
// A block number denoting a hole on a sparse file. Used on Extents to refer to
// section of blocks not present on disk on a sparse file.
-const uint64_t kSparseHole = kuint64max;
+const uint64_t kSparseHole = std::numeric_limits<uint64_t>::max();
-}; // namespace chromeos_update_engine
+} // namespace chromeos_update_engine
#endif // UPDATE_ENGINE_PAYLOAD_CONSTANTS_H_