Fixed __doserrno type.

svn path=/trunk/; revision=2267
This commit is contained in:
Eric Kohl 2001-10-04 16:06:36 +00:00
parent ae6141ba18
commit d3a9cfe663
3 changed files with 7 additions and 7 deletions

View file

@ -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 */

View file

@ -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 */

View file

@ -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);
} }