mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
chg: moving around includes
This commit is contained in:
parent
65c1a6b2c1
commit
b279d04c85
6 changed files with 33 additions and 24 deletions
|
@ -41,6 +41,11 @@
|
|||
#ifndef ON_DEVICE
|
||||
|
||||
#include <inttypes.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <sys/stat.h>
|
||||
#include <stdarg.h>
|
||||
#include "../ui.h"
|
||||
|
||||
/**
|
||||
|
@ -77,14 +82,23 @@ extern int saveFileEML(const char *preferredName, const char *suffix, uint8_t* d
|
|||
*/
|
||||
|
||||
int fileExists(const char *filename);
|
||||
#endif //ON_DEVICE
|
||||
|
||||
/**
|
||||
#define PrintAndLogDevice(level, format, args...) PrintAndLogEx(level, format , ## args)
|
||||
#else
|
||||
|
||||
/**
|
||||
* Utility function to print to console. This is used consistently within the library instead
|
||||
* of printf, but it actually only calls printf. The reason to have this method is to
|
||||
*make it simple to plug this library into proxmark, which has this function already to
|
||||
* write also to a logfile. When doing so, just point this function to use PrintAndLog
|
||||
* @param fmt
|
||||
*/
|
||||
void PrintAndLogDevice(logLevel_t level, char *fmt, ...);
|
||||
#define PrintAndLogDevice(level, format, args...) { }
|
||||
|
||||
|
||||
#endif //ON_DEVICE
|
||||
|
||||
|
||||
//void PrintAndLogDevice(logLevel_t level, char *fmt, ...);
|
||||
|
||||
#endif // FILEUTILS_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue