Skip to content

Commit

Permalink
Header cleanup filesystem follow-up (#2894)
Browse files Browse the repository at this point in the history
* Header cleanup

* Header guard rename
  • Loading branch information
AntoinePrv authored Oct 6, 2023
1 parent 5a302fc commit b9837f2
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion libmamba/include/mamba/core/fetch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#ifndef MAMBA_CORE_FETCH_HPP
#define MAMBA_CORE_FETCH_HPP

#include <fstream>
#include <memory>
#include <string>
#include <vector>

Expand All @@ -21,7 +23,6 @@ extern "C"
////////////////////////////////////

#include "progress_bar.hpp"
#include "validate.hpp"

namespace mamba
{
Expand Down
1 change: 0 additions & 1 deletion libmamba/include/mamba/core/subdirdata.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include "mamba/core/context.hpp"
#include "mamba/core/download.hpp"
#include "mamba/core/error_handling.hpp"
#include "mamba/core/fetch.hpp"
#include "mamba/core/package_cache.hpp"
#include "mamba/core/pool.hpp"
#include "mamba/core/repo.hpp"
Expand Down
4 changes: 2 additions & 2 deletions libmamba/include/mamba/fs/filesystem.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
//
// The full license is in the file LICENSE, distributed with this software.

#ifndef MAMBA_CORE_FS_FILESYSTEM_HPP
#define MAMBA_CORE_FS_FILESYSTEM_HPP
#ifndef MAMBA_FS_FILESYSTEM_HPP
#define MAMBA_FS_FILESYSTEM_HPP

#include <filesystem>
#include <string>
Expand Down
1 change: 1 addition & 0 deletions libmamba/src/api/configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "mamba/core/fsutil.hpp"
#include "mamba/core/output.hpp"
#include "mamba/core/package_download.hpp"
#include "mamba/core/util.hpp"
#include "mamba/util/build.hpp"
#include "mamba/util/string.hpp"

Expand Down
1 change: 1 addition & 0 deletions libmamba/src/core/fetch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "mamba/core/fetch.hpp"
#include "mamba/core/output.hpp"
#include "mamba/core/thread_utils.hpp"
#include "mamba/core/util.hpp"
#include "mamba/util/build.hpp"
#include "mamba/util/string.hpp"
#include "mamba/util/url.hpp"
Expand Down
3 changes: 2 additions & 1 deletion libmamba/src/core/package_download.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// The full license is in the file LICENSE, distributed with this software.

#include <iostream>
#include <stack>

#include <fmt/color.h>
#include <fmt/format.h>
Expand All @@ -21,6 +20,8 @@
#include "mamba/core/package_handling.hpp"
#include "mamba/core/progress_bar.hpp"
#include "mamba/core/thread_utils.hpp"
#include "mamba/core/util.hpp"
#include "mamba/core/validate.hpp"
#include "mamba/fs/filesystem.hpp"
#include "mamba/util/string.hpp"

Expand Down
2 changes: 2 additions & 0 deletions libmamba/src/core/transaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#include <fmt/format.h>
#include <fmt/ostream.h>
#include <solv/selection.h>

#include "mamba/core/validate.hpp"
extern "C" // Incomplete header
{
#include <solv/conda.h>
Expand Down

0 comments on commit b9837f2

Please sign in to comment.