Use free Windows DDK and compile with latest MinGW releases.
[reactos.git] / reactos / lib / msvcrt / stdio / perror.c
1 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2 #include <msvcrti.h>
3
4
5 #ifdef perror
6 #undef perror
7 void perror(const char *s);
8 #endif
9
10 void perror(const char *s)
11 {
12 fprintf(stderr, "%s: %s\n", s, _strerror(NULL));
13 }
14
15 void _wperror(const wchar_t *s)
16 {
17 fwprintf(stderr, L"%s: %S\n", s, _strerror(NULL));
18 }