Fix build on Windows (using cmake and nmake).
This commit is contained in:
parent
3dccc218df
commit
3e8e1c8844
6 changed files with 32 additions and 11 deletions
12
win32/err.h
Normal file
12
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_ */
|
||||
Loading…
Add table
Add a link
Reference in a new issue