mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-11 18:13:46 +00:00
MERGE: libnfc-mingw-cross merge with trunk (r805-821)
This commit is contained in:
@@ -3,9 +3,14 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#define warnx(...) fprintf (stderr, __VA_ARGS__)
|
||||
#define warnx(...) do { \
|
||||
fprintf (stderr, __VA_ARGS__); \
|
||||
fprintf (stderr, "\n"); \
|
||||
} while (0)
|
||||
|
||||
#define errx(code, ...) do { \
|
||||
fprintf (stderr, __VA_ARGS__); \
|
||||
fprintf (stderr, "\n"); \
|
||||
exit (code); \
|
||||
} while (0)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user