chg: moving around includes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user