mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
ADD: num_CPUs(void) method from pm3 master
CHG: clean up in util.c ADD: seems like mingw doesn't have scandir. Had to add one. *untested*
This commit is contained in:
parent
f942e1ed05
commit
8f262aa1bf
6 changed files with 150 additions and 20 deletions
23
client/scandir.h
Normal file
23
client/scandir.h
Normal file
|
@ -0,0 +1,23 @@
|
|||
//-----------------------------------------------------------------------------
|
||||
// Copyright (C) 2017 iceman <iceman at iuse.se>
|
||||
//
|
||||
// This code is licensed to you under the terms of the GNU GPL, version 2 or,
|
||||
// at your option, any later version. See the LICENSE.txt file for the text of
|
||||
// the license.
|
||||
//-----------------------------------------------------------------------------
|
||||
// platform-independant sleep macros
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
#ifndef SCANDIR_H__
|
||||
#define SCANDIR_H__
|
||||
|
||||
#include <dirent.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef _WIN32
|
||||
#else
|
||||
#endif // _WIN32
|
||||
|
||||
extern int scandir (const char *dir, struct dirent ***namelist, int (*select) (const struct dirent *), int (*compar) (const struct dirent **, const struct dirent **));
|
||||
extern int alphasort (const struct dirent **a, const struct dirent **b);
|
||||
#endif // SCANDIR_H__
|
Loading…
Add table
Add a link
Reference in a new issue