msvcrt: Add a prototype for _atoldbl() & co and declare _LDOUBLE & co in stdlib.h.

This commit is contained in:
Francois Gouget 2007-08-30 16:15:47 +02:00 committed by Alexandre Julliard
parent 4067c194c6
commit dd3e2be810
3 changed files with 21 additions and 2 deletions

View File

@ -71,7 +71,7 @@ typedef void (*MSVCRT__beginthread_start_routine_t)(void *);
typedef unsigned int (__stdcall *MSVCRT__beginthreadex_start_routine_t)(void *);
typedef int (*MSVCRT__onexit_t)(void);
typedef struct {long double x;} _LDOUBLE;
typedef struct {long double x;} MSVCRT__LDOUBLE;
struct MSVCRT_tm {
int tm_sec;

View File

@ -174,7 +174,7 @@ int CDECL MSVCRT__stricoll( const char* str1, const char* str2 )
/********************************************************************
* _atoldbl (MSVCRT.@)
*/
int CDECL MSVCRT__atoldbl(_LDOUBLE * value, char * str)
int CDECL MSVCRT__atoldbl(MSVCRT__LDOUBLE * value, char * str)
{
/* FIXME needs error checking for huge/small values */
#ifdef HAVE_STRTOLD

View File

@ -28,6 +28,22 @@ typedef unsigned short wchar_t;
#endif
#endif
typedef struct
{
float f;
} _CRT_FLOAT;
typedef struct
{
double x;
} _CRT_DOUBLE;
typedef struct
{
unsigned char ld[10];
} _LDOUBLE;
#if defined(__x86_64__) && !defined(_WIN64)
#define _WIN64
#endif
@ -128,8 +144,11 @@ extern int* _errno(void);
typedef int (*_onexit_t)(void);
int _atodbl(_CRT_DOUBLE*,char*);
int _atoflt(_CRT_FLOAT*,char*);
__int64 _atoi64(const char*);
long double _atold(const char*);
int _atoldbl(_LDOUBLE*,char*);
void _beep(unsigned int,unsigned int);
char* _ecvt(double,int,int*,int*);
char* _fcvt(double,int,int*,int*);