diff options
Diffstat (limited to 'src/mongo/platform')
-rw-r--r-- | src/mongo/platform/endian.h | 3 | ||||
-rw-r--r-- | src/mongo/platform/endian_test.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/platform/endian.h b/src/mongo/platform/endian.h index fed9ca95c69..0d644d6b512 100644 --- a/src/mongo/platform/endian.h +++ b/src/mongo/platform/endian.h @@ -171,8 +171,6 @@ namespace endian { ((v & 0xFF00000000000000ULL) >> 56); } -} // namespace endian - template<typename T> struct ByteOrderConverter; @@ -452,6 +450,7 @@ namespace endian { return ByteOrderConverter<T>::littleToNative(t); } +} // namespace endian } // namespace mongo #undef MONGO_UINT16_SWAB diff --git a/src/mongo/platform/endian_test.cpp b/src/mongo/platform/endian_test.cpp index 733f9c69b0c..ab12b8c3fa3 100644 --- a/src/mongo/platform/endian_test.cpp +++ b/src/mongo/platform/endian_test.cpp @@ -33,6 +33,8 @@ namespace mongo { + using namespace endian; + TEST( EndianTest, TestSlow16 ) { uint8_t le_buf[] = { 0x01, 0x02 }; uint8_t be_buf[] = { 0x02, 0x01 }; |