Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #2 - Compile using GCC 10 #3

Merged
merged 2 commits into from
Oct 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
#define BOLD "\033[1m"
#define DIM "\033[2m"

bool verbose_status;
int verbosity_level;
extern bool verbose_status;
extern int verbosity_level;
void set_verbose(bool);
void set_verbosity(int);
int lverbose(const char * restrict, ...);
int lverbose_lvl(int, const char * restrict, ...);
int lerror(const char * restrict, ...);
int lwarning(const char * restrict, ...);

#endif // LOGGING_H
#endif // LOGGING_H
4 changes: 2 additions & 2 deletions nfc_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
#define SR_WRITE_BLOCK_COMMAND 0x09

/* Constants */
const nfc_modulation nmISO14443B;
const nfc_modulation nmISO14443B2SR;
extern const nfc_modulation nmISO14443B;
extern const nfc_modulation nmISO14443B2SR;

/* Logging */
void log_command_sent(const uint8_t *command, size_t num_bytes);
Expand Down