Skip to content

Commit

Permalink
Remove experimental prefix from filesystem includes
Browse files Browse the repository at this point in the history
  • Loading branch information
nassibnassar committed Jan 1, 2024
1 parent 50cbd17 commit ac2903a
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 25 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ set(RapidJSON_DIR "${CMAKE_SOURCE_DIR}/cmake")

#add_subdirectory (src)

SET(MACOS_RAPIDJSON_INCLUDE "-I/opt/homebrew//Cellar/rapidjson/1.1.0/include")
SET(MACOS_RAPIDJSON_INCLUDE "-I/opt/homebrew/Cellar/rapidjson/1.1.0/include")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -pedantic -Wall -Wno-deprecated-declarations ${MACOS_RAPIDJSON_INCLUDE}")

IF(CMAKE_COMPILER_IS_GNUCXX)
Expand Down
6 changes: 2 additions & 4 deletions src/addcolumns.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
#define _LIBCPP_NO_EXPERIMENTAL_DEPRECATION_WARNING_FILESYSTEM

#include <algorithm>
#include <experimental/filesystem>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <sstream>

#include "addcolumns.h"

namespace fs = std::experimental::filesystem;
namespace fs = std::filesystem;

void get_add_column_filename(const ldp_options& opt, string* filename)
{
Expand Down
6 changes: 2 additions & 4 deletions src/dropfields.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
#define _LIBCPP_NO_EXPERIMENTAL_DEPRECATION_WARNING_FILESYSTEM

#include <algorithm>
#include <experimental/filesystem>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <sstream>

#include "dropfields.h"

namespace fs = std::experimental::filesystem;
namespace fs = std::filesystem;

void get_drop_field_filename(const ldp_options& opt, string* filename)
{
Expand Down
6 changes: 2 additions & 4 deletions src/init.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#define _LIBCPP_NO_EXPERIMENTAL_DEPRECATION_WARNING_FILESYSTEM

#include <experimental/filesystem>
#include <filesystem>
#include <sstream>
#include <stdexcept>

Expand All @@ -12,7 +10,7 @@
#include "schema.h"
#include "util.h"

namespace fs = std::experimental::filesystem;
namespace fs = std::filesystem;

static int64_t ldp_latest_database_version = 34;

Expand Down
6 changes: 2 additions & 4 deletions src/stage.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#define _LIBCPP_NO_EXPERIMENTAL_DEPRECATION_WARNING_FILESYSTEM

#include <algorithm>
#include <cstdio>
#include <experimental/filesystem>
#include <filesystem>
#include <map>
#include <memory>
#include <regex>
Expand All @@ -22,7 +20,7 @@
#include "schema.h"
#include "stage.h"

namespace fs = std::experimental::filesystem;
namespace fs = std::filesystem;
namespace json = rapidjson;

const long unsigned int copy_buffer_size = 12500000;
Expand Down
6 changes: 2 additions & 4 deletions src/update.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#define _LIBCPP_NO_EXPERIMENTAL_DEPRECATION_WARNING_FILESYSTEM

#include <cstdint>
#include <curl/curl.h>
#include <experimental/filesystem>
#include <filesystem>
#include <iostream>
#include <map>
#include <stdexcept>
Expand All @@ -24,7 +22,7 @@
#include "update.h"
#include "users.h"

namespace fs = std::experimental::filesystem;
namespace fs = std::filesystem;

void make_update_tmp_dir(const ldp_options& opt, string* loaddir)
{
Expand Down
6 changes: 2 additions & 4 deletions src/users.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
#define _LIBCPP_NO_EXPERIMENTAL_DEPRECATION_WARNING_FILESYSTEM

#include <algorithm>
#include <experimental/filesystem>
#include <filesystem>
#include <fstream>
#include <iostream>
#include <sstream>

#include "users.h"

namespace fs = std::experimental::filesystem;
namespace fs = std::filesystem;

void get_users_filename(const ldp_options& opt, string* filename)
{
Expand Down

0 comments on commit ac2903a

Please sign in to comment.