mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Fixed __doserrno type.
svn path=/trunk/; revision=2267
This commit is contained in:
parent
ae6141ba18
commit
d3a9cfe663
3 changed files with 7 additions and 7 deletions
|
@ -18,9 +18,9 @@
|
|||
* DISCLAMED. This includes but is not limited to warranties of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Revision: 1.2 $
|
||||
* $Revision: 1.3 $
|
||||
* $Author: ekohl $
|
||||
* $Date: 2001/07/03 12:56:48 $
|
||||
* $Date: 2001/10/04 16:05:41 $
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -98,7 +98,7 @@ extern "C" {
|
|||
int* _errno(void);
|
||||
#define errno (*_errno())
|
||||
|
||||
int* __doserrno(void);
|
||||
unsigned long* __doserrno(void);
|
||||
#define _doserrno (*__doserrno())
|
||||
|
||||
/* One of the MSVCRTxx libraries */
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
typedef struct _ThreadData
|
||||
{
|
||||
int terrno;
|
||||
unsigned long tdoserrno;
|
||||
int terrno; /* *nix error code */
|
||||
unsigned long tdoserrno; /* Win32 error code (for I/O only) */
|
||||
unsigned long long tnext; /* used by rand/srand */
|
||||
|
||||
char *lasttoken; /* used by strtok */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: errno.c,v 1.4 2001/10/03 02:15:34 ekohl Exp $
|
||||
/* $Id: errno.c,v 1.5 2001/10/04 16:06:36 ekohl Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
|||
#include <msvcrt/internal/tls.h>
|
||||
#include <msvcrt/internal/file.h>
|
||||
|
||||
int *__doserrno(void)
|
||||
unsigned long *__doserrno(void)
|
||||
{
|
||||
return(&GetThreadData()->tdoserrno);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue