forked from felipetavares/bake
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwindows.hpp
More file actions
37 lines (28 loc) · 828 Bytes
/
windows.hpp
File metadata and controls
37 lines (28 loc) · 828 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
Copyright © 2015 Felipe Tavares <felipe.oltavares@gmail.com>
This work is free. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See the LICENSE file for more details.
*/
#ifndef BAKE_WINDOWS_H
#define BAKE_WINDOWS_H
#ifdef _WIN32
#include <windows.h>
#include <string>
#include <vector>
using namespace std;
namespace bake {
struct dirent {
char d_name[255];
};
/*
Windows scandir
*/
int scandir (char *, struct dirent***, char*,
int (*)(const struct dirent **, const struct dirent **));
}
#if defined(_MSC_VER) && !defined(S_ISDIR)
#define S_ISDIR(mode) ((mode & _S_IFDIR) == _S_IFDIR)
#endif
#endif
#endif /* BAKE_WINDOWS_H */