mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-12 10:33:47 +00:00
Move additionnal files (for Windows) in contrib/
This commit is contained in:
12
contrib/win32/err.h
Normal file
12
contrib/win32/err.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef _ERR_H_
|
||||
#define _ERR_H_
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#define warnx(...) fprintf (stderr, __VA_ARGS__)
|
||||
#define errx(code, ...) do { \
|
||||
fprintf (stderr, __VA_ARGS__); \
|
||||
exit (code); \
|
||||
} while (0)
|
||||
|
||||
#endif /* !_ERR_H_ */
|
||||
Reference in New Issue
Block a user