Skip to content

Commit

Permalink
Add gulrak/filesystem
Browse files Browse the repository at this point in the history
  • Loading branch information
0blu committed Aug 30, 2024
1 parent 5ce83ff commit 03a1e98
Show file tree
Hide file tree
Showing 9 changed files with 6,412 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/shared/nonstd/filesystem.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#ifndef NONSTD_FILESYSTEM_BACKPORT_H
#define NONSTD_FILESYSTEM_BACKPORT_H

#include "./ghc-filesystem-cpp11-backport/filesystem.hpp"

namespace nonstd { namespace filesystem {
using namespace ghc::filesystem;
using ifstream = ghc::filesystem::ifstream;
using ofstream = ghc::filesystem::ofstream;
using fstream = ghc::filesystem::fstream;
}} // namespace nonstd::filesystem

#endif // NONSTD_FILESYSTEM_BACKPORT_H
19 changes: 19 additions & 0 deletions src/shared/nonstd/ghc-filesystem-cpp11-backport/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2018, Steffen Schümann <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
16 changes: 16 additions & 0 deletions src/shared/nonstd/ghc-filesystem-cpp11-backport/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# gulrak/filesystem

> An implementation of C++17 std::filesystem for C++11 /C++14/C++17/C++20 on Windows, macOS, Linux and FreeBSD.
It is used in MaNGOS to allow for an easy filesystem interface without writing everything by ourselves and each OS.
It aims to be a drop-in-replacement for the official standard, which means if this project upgrades to a newer C++ version, it can be easily exchanged.

## Source
Commit: https://github.com/gulrak/filesystem/commit/b1982f06c84f08a99fb90bac43c2d03712efe921
Date: 2024-04-27T10:20:18Z

## Copied files
```
include/*
LICENSE.txt
```
Loading

0 comments on commit 03a1e98

Please sign in to comment.