summaryrefslogtreecommitdiffstats
path: root/chassishandler.cpp
diff options
context:
space:
mode:
authorVernon Mauery <vernon.mauery@linux.intel.com>2019-02-26 10:18:51 -0800
committerVernon Mauery <vernon.mauery@linux.intel.com>2019-03-28 15:21:12 +0000
commitbdda8008226db9f4ae6d88b553ffa6192dfcfd57 (patch)
tree089ef09d801e48a3325fe02afbac450c57acdb67 /chassishandler.cpp
parent90b00c71067df78597db92bb60dbacf654a6f80a (diff)
downloadphosphor-host-ipmid-bdda8008226db9f4ae6d88b553ffa6192dfcfd57.tar.gz
phosphor-host-ipmid-bdda8008226db9f4ae6d88b553ffa6192dfcfd57.zip
Remove experimental filesystem splice
In order to be compatible with older versions of GCC that did not have the experimental filesystem moved over to the standard paths, the code would splice the experimental code into the std namespace. This is no longer necessary with yocto 2.6 and the latest versions of GCC. Change-Id: I2db13c52a91456318795819f2d45c3386b4c56d2 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
Diffstat (limited to 'chassishandler.cpp')
-rw-r--r--chassishandler.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/chassishandler.cpp b/chassishandler.cpp
index 072a021..07e8c5b 100644
--- a/chassishandler.cpp
+++ b/chassishandler.cpp
@@ -15,6 +15,7 @@
#include <array>
#include <chrono>
#include <cstring>
+#include <filesystem>
#include <fstream>
#include <future>
#include <ipmid/types.hpp>
@@ -35,19 +36,6 @@
#include <xyz/openbmc_project/State/Host/server.hpp>
#include <xyz/openbmc_project/State/PowerOnHours/server.hpp>
-#if __has_include(<filesystem>)
-#include <filesystem>
-#elif __has_include(<experimental/filesystem>)
-#include <experimental/filesystem>
-namespace std
-{
-// splice experimental::filesystem into std
-namespace filesystem = std::experimental::filesystem;
-} // namespace std
-#else
-#error filesystem not available
-#endif
-
// Defines
#define SET_PARM_VERSION 0x01
#define SET_PARM_BOOT_FLAGS_PERMANENT 0x40
OpenPOWER on IntegriCloud