(__set_errno): Switch to _MSC_VER define instead of HAVE__SET_ERRNO
define. (int32_t) [_WIN32]: Remove commented define..
This commit is contained in:
parent
136a313334
commit
ac20e65930
1 changed files with 1 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
||||||
#include <io.h>
|
#include <io.h>
|
||||||
|
|
||||||
typedef int int32_t;
|
typedef int int32_t;
|
||||||
//#define int32_t int
|
|
||||||
#define NULL ((void *)0)
|
#define NULL ((void *)0)
|
||||||
struct random_data
|
struct random_data
|
||||||
{
|
{
|
||||||
|
@ -22,7 +21,7 @@ struct random_data
|
||||||
#define __libc_lock_unlock(lock)
|
#define __libc_lock_unlock(lock)
|
||||||
#define __libc_lock_define_initialized(static1, lock)
|
#define __libc_lock_define_initialized(static1, lock)
|
||||||
|
|
||||||
#ifdef HAVE__SET_ERRNO
|
#ifdef _MSC_VER
|
||||||
#define __set_errno(val) _set_errno((val))
|
#define __set_errno(val) _set_errno((val))
|
||||||
#else
|
#else
|
||||||
#define __set_errno(val) (errno = (val))
|
#define __set_errno(val) (errno = (val))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue