Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
48cc4a6c
Commit
48cc4a6c
authored
May 19, 2021
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fs/Glob: remove redundant #ifdefs
parent
a169a05e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
Glob.hxx
src/fs/Glob.hxx
+2
-6
No files found.
src/fs/Glob.hxx
View file @
48cc4a6c
...
...
@@ -24,34 +24,30 @@
#ifdef HAVE_FNMATCH
#define HAVE_CLASS_GLOB
#include <string>
#include <fnmatch.h>
#elif defined(_WIN32)
#define HAVE_CLASS_GLOB
#include <string>
#include <shlwapi.h>
#endif
#ifdef HAVE_CLASS_GLOB
#include "util/Compiler.h"
#include <string>
/**
* A pattern that matches file names. It may contain shell wildcards
* (asterisk and question mark).
*/
class
Glob
{
#if defined(HAVE_FNMATCH) || defined(_WIN32)
std
::
string
pattern
;
#endif
public
:
#if defined(HAVE_FNMATCH) || defined(_WIN32)
explicit
Glob
(
const
char
*
_pattern
)
:
pattern
(
_pattern
)
{}
Glob
(
Glob
&&
other
)
:
pattern
(
std
::
move
(
other
.
pattern
))
{}
#endif
gcc_pure
bool
Check
(
const
char
*
name_fs
)
const
noexcept
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment