Fix build on Windows (using cmake and nmake).

This commit is contained in:
Romain Tartiere 2010-04-16 20:39:56 +00:00
parent 3dccc218df
commit 3e8e1c8844
6 changed files with 32 additions and 11 deletions

12
win32/err.h Normal file
View 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_ */