(__set_errno) [_WIN32]: Add macro for __set_errno() for MinGW as it
does not have a _set_errno().
This commit is contained in:
parent
e051b2fea7
commit
a05649a660
1 changed files with 5 additions and 1 deletions
|
@ -22,7 +22,11 @@ struct random_data
|
|||
#define __libc_lock_unlock(lock)
|
||||
#define __libc_lock_define_initialized(static1, lock)
|
||||
|
||||
#define __set_errno(error) _set_errno((error))
|
||||
#ifdef HAVE__SET_ERRNO
|
||||
#define __set_errno(val) _set_errno((val))
|
||||
#else
|
||||
#define __set_errno(val) (errno = (val))
|
||||
#endif
|
||||
|
||||
#define weak_alias(arg1, arg2)
|
||||
#define srandom_r(seed, buf) __srandom_r((seed), (buf))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue