mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +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
|
* DISCLAMED. This includes but is not limited to warranties of
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
*
|
*
|
||||||
* $Revision: 1.2 $
|
* $Revision: 1.3 $
|
||||||
* $Author: ekohl $
|
* $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);
|
int* _errno(void);
|
||||||
#define errno (*_errno())
|
#define errno (*_errno())
|
||||||
|
|
||||||
int* __doserrno(void);
|
unsigned long* __doserrno(void);
|
||||||
#define _doserrno (*__doserrno())
|
#define _doserrno (*__doserrno())
|
||||||
|
|
||||||
/* One of the MSVCRTxx libraries */
|
/* One of the MSVCRTxx libraries */
|
||||||
|
|
|
@ -7,8 +7,8 @@
|
||||||
|
|
||||||
typedef struct _ThreadData
|
typedef struct _ThreadData
|
||||||
{
|
{
|
||||||
int terrno;
|
int terrno; /* *nix error code */
|
||||||
unsigned long tdoserrno;
|
unsigned long tdoserrno; /* Win32 error code (for I/O only) */
|
||||||
unsigned long long tnext; /* used by rand/srand */
|
unsigned long long tnext; /* used by rand/srand */
|
||||||
|
|
||||||
char *lasttoken; /* used by strtok */
|
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/tls.h>
|
||||||
#include <msvcrt/internal/file.h>
|
#include <msvcrt/internal/file.h>
|
||||||
|
|
||||||
int *__doserrno(void)
|
unsigned long *__doserrno(void)
|
||||||
{
|
{
|
||||||
return(&GetThreadData()->tdoserrno);
|
return(&GetThreadData()->tdoserrno);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue