-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move
#include <filesystem>
in its own file to be consistent with ex…
…perimental support... Use `fs::` instead of `std::filesystem`
- Loading branch information
Showing
8 changed files
with
63 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// _________ __ __ | ||
// / _____// |_____________ _/ |______ ____ __ __ ______ | ||
// \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ | ||
// / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ | | ||
// /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > | ||
// \/ \/ \//_____/ \/ | ||
// ______________________ ______________________ | ||
// T H E W A R B E G I N S | ||
// Stratagus - A free fantasy real time strategy game engine | ||
// | ||
/**@name filesystem - filesystem header selection. */ | ||
// | ||
// (c) Copyright 1998-2023 by Lutz Sammer, Jimmy Salmon and Joris Dauphin. | ||
// | ||
// This program is free software; you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation; only version 2 of the License. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with this program; if not, write to the Free Software | ||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | ||
// 02111-1307, USA. | ||
// | ||
|
||
#ifndef __FILESYSTEM_H__ | ||
#define __FILESYSTEM_H__ | ||
|
||
//@{ | ||
|
||
/*---------------------------------------------------------------------------- | ||
-- Includes | ||
----------------------------------------------------------------------------*/ | ||
|
||
#if __has_include(<filesystem>) | ||
# include <filesystem> | ||
namespace fs = std::filesystem; | ||
#elif __has_include(<experimental/filesystem>) | ||
# include <experimental/filesystem> | ||
namespace fs = std::experimental::filesystem; | ||
#else | ||
error "Missing the <filesystem> header." | ||
#endif | ||
|
||
//@} | ||
|
||
#endif /* __FILESYSTEM_H__ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters