aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/includes/hicn/transport/portability/portability.h
diff options
context:
space:
mode:
Diffstat (limited to 'libtransport/includes/hicn/transport/portability/portability.h')
-rw-r--r--libtransport/includes/hicn/transport/portability/portability.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/libtransport/includes/hicn/transport/portability/portability.h b/libtransport/includes/hicn/transport/portability/portability.h
index 24ef012f7..fd6eca4de 100644
--- a/libtransport/includes/hicn/transport/portability/portability.h
+++ b/libtransport/includes/hicn/transport/portability/portability.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 Cisco and/or its affiliates.
+ * Copyright (c) 2021 Cisco and/or its affiliates.
* Copyright 2017 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -26,11 +26,9 @@
#include <cstddef>
+namespace transport {
namespace portability {
-constexpr bool little_endian_arch = __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__;
-constexpr bool big_endian_arch = !little_endian_arch;
-
// Generalize warning push/pop.
#if defined(__GNUC__) || defined(__clang__)
// Clang & GCC
@@ -69,3 +67,4 @@ constexpr bool big_endian_arch = !little_endian_arch;
#endif
} // namespace portability
+} // namespace transport \ No newline at end of file