textual
[RRG-proxmark3.git] / client / src / scandir.h
blob905431cbed1cf6b5655e98ee7e413f43387bf5b0
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2017 iceman <iceman at iuse.se>
3 //
4 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
5 // at your option, any later version. See the LICENSE.txt file for the text of
6 // the license.
7 //-----------------------------------------------------------------------------
8 // platform-independant sleep macros
9 //-----------------------------------------------------------------------------
11 #ifndef SCANDIR_H__
12 #define SCANDIR_H__
14 #include <dirent.h>
15 #include <stdlib.h>
17 #ifdef _WIN32
18 int scandir(const char *dir, struct dirent ***namelist, int (*select)(const struct dirent *), int (*compar)(const struct dirent **, const struct dirent **));
19 int alphasort(const struct dirent **a, const struct dirent **b);
20 #endif // _WIN32
22 #endif // SCANDIR_H__