From ec94ebb1f4b0582e575831885ac4bafc1b6f4b85 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Sun, 23 Mar 2014 14:41:17 +0400 Subject: [PATCH] stdint.hpp - typedef instead of using declaration - typedefs are safer --- libuavcan/include/uavcan/stdint.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libuavcan/include/uavcan/stdint.hpp b/libuavcan/include/uavcan/stdint.hpp index 9f2f7a3c25..a1447b0247 100644 --- a/libuavcan/include/uavcan/stdint.hpp +++ b/libuavcan/include/uavcan/stdint.hpp @@ -17,15 +17,15 @@ namespace uavcan { -using std::uint8_t; -using std::uint16_t; -using std::uint32_t; -using std::uint64_t; +typedef std::uint8_t uint8_t; +typedef std::uint16_t uint16_t; +typedef std::uint32_t uint32_t; +typedef std::uint64_t uint64_t; -using std::int8_t; -using std::int16_t; -using std::int32_t; -using std::int64_t; +typedef std::int8_t int8_t; +typedef std::int16_t int16_t; +typedef std::int32_t int32_t; +typedef std::int64_t int64_t; }