mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
2004-11-03 Timo Schulz <twoaday@g10code.com>
* strgutil.c (w32_strerror): New. * ttyio.c (init_ttyfp, tty_printf, do_get): Use it here. * iobuf.c (fd_cache_open, file_filter): Likewise. (iobuf_seek, translate_file_handle): Likewise.
This commit is contained in:
parent
b467558d9e
commit
37ecd725e5
14 changed files with 155 additions and 104 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-11-03 Timo Schulz <twoaday@g10code.com>
|
||||
|
||||
* errors.h: Add w32_strerror prototype.
|
||||
* dynload.h: Use w32_strerror.
|
||||
|
||||
2004-10-27 Werner Koch <wk@g10code.com>
|
||||
|
||||
* dynload.h: Always use it for _WIN32.
|
||||
|
|
|
@ -52,9 +52,7 @@ dlsym (void * hd, const char * sym)
|
|||
static __inline__ const char *
|
||||
dlerror (void)
|
||||
{
|
||||
static char buf[32];
|
||||
sprintf (buf, "ec=%lu\n", GetLastError ());
|
||||
return buf;
|
||||
return w32_strerror (0);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -79,7 +79,11 @@
|
|||
#define G10ERR_NO_CARD 57
|
||||
|
||||
#ifndef HAVE_STRERROR
|
||||
char *strerror( int n );
|
||||
char *strerror (int n);
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
const char * w32_strerror (int w32_errno);
|
||||
#endif
|
||||
|
||||
#endif /*G10_ERRORS_H*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue