Skip to content

Commit

Permalink
shrink blocks of #if __has_include(<filesystem>) in fbcode
Browse files Browse the repository at this point in the history
Summary: In a semi-automatic way shrinked all blocks and manually corrected those few moving around.

Reviewed By: anps77

Differential Revision: D53143734

fbshipit-source-id: e50b273583fbb4a9e13752f3e1fa477eb24af414
  • Loading branch information
Pavel Iatchenii authored and facebook-github-bot committed Jan 29, 2024
1 parent 1776bed commit 0336c1c
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 25 deletions.
5 changes: 0 additions & 5 deletions openr/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

#if __has_include("filesystem")
#include <filesystem>
namespace fs = std::filesystem;
#else
#include <experimental/filesystem>
namespace fs = std::experimental::filesystem;
#endif
#include <syslog.h>
#include <fstream>
#include <stdexcept>
Expand Down
5 changes: 0 additions & 5 deletions openr/common/Util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,8 @@
* LICENSE file in the root directory of this source tree.
*/

#if __has_include("filesystem")
#include <filesystem>
namespace fs = std::filesystem;
#else
#include <experimental/filesystem>
namespace fs = std::experimental::filesystem;
#endif

#include <fb303/ServiceData.h>
#include <folly/logging/xlog.h>
Expand Down
5 changes: 0 additions & 5 deletions openr/config-store/PersistentStore.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@
#pragma once

#include <chrono>
#if __has_include("filesystem")
#include <filesystem>
namespace fs = std::filesystem;
#else
#include <experimental/filesystem>
namespace fs = std::experimental::filesystem;
#endif
#include <string>

#include <folly/futures/Future.h>
Expand Down
5 changes: 0 additions & 5 deletions openr/config/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@

#pragma once

#if __has_include("filesystem")
#include <filesystem>
namespace fs = std::filesystem;
#else
#include <experimental/filesystem>
namespace fs = std::experimental::filesystem;
#endif
#include <folly/IPAddress.h>
#include <folly/io/async/SSLContext.h>
#include <openr/common/FileUtil.h>
Expand Down
5 changes: 0 additions & 5 deletions openr/ctrl-server/OpenrCtrlHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,8 @@
#include <openr/ctrl-server/OpenrCtrlHandler.h>
#include <re2/re2.h>

#if __has_include("filesystem")
#include <filesystem>
namespace fs = std::filesystem;
#else
#include <experimental/filesystem>
namespace fs = std::experimental::filesystem;
#endif

#include <folly/ExceptionString.h>
#include <folly/logging/xlog.h>
Expand Down

0 comments on commit 0336c1c

Please sign in to comment.