msvcrt: Add a prototype for _atoldbl() & co and declare _LDOUBLE & co in stdlib.h.
This commit is contained in:
parent
4067c194c6
commit
dd3e2be810
|
@ -71,7 +71,7 @@ typedef void (*MSVCRT__beginthread_start_routine_t)(void *);
|
||||||
typedef unsigned int (__stdcall *MSVCRT__beginthreadex_start_routine_t)(void *);
|
typedef unsigned int (__stdcall *MSVCRT__beginthreadex_start_routine_t)(void *);
|
||||||
typedef int (*MSVCRT__onexit_t)(void);
|
typedef int (*MSVCRT__onexit_t)(void);
|
||||||
|
|
||||||
typedef struct {long double x;} _LDOUBLE;
|
typedef struct {long double x;} MSVCRT__LDOUBLE;
|
||||||
|
|
||||||
struct MSVCRT_tm {
|
struct MSVCRT_tm {
|
||||||
int tm_sec;
|
int tm_sec;
|
||||||
|
|
|
@ -174,7 +174,7 @@ int CDECL MSVCRT__stricoll( const char* str1, const char* str2 )
|
||||||
/********************************************************************
|
/********************************************************************
|
||||||
* _atoldbl (MSVCRT.@)
|
* _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 */
|
/* FIXME needs error checking for huge/small values */
|
||||||
#ifdef HAVE_STRTOLD
|
#ifdef HAVE_STRTOLD
|
||||||
|
|
|
@ -28,6 +28,22 @@ typedef unsigned short wchar_t;
|
||||||
#endif
|
#endif
|
||||||
#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)
|
#if defined(__x86_64__) && !defined(_WIN64)
|
||||||
#define _WIN64
|
#define _WIN64
|
||||||
#endif
|
#endif
|
||||||
|
@ -128,8 +144,11 @@ extern int* _errno(void);
|
||||||
typedef int (*_onexit_t)(void);
|
typedef int (*_onexit_t)(void);
|
||||||
|
|
||||||
|
|
||||||
|
int _atodbl(_CRT_DOUBLE*,char*);
|
||||||
|
int _atoflt(_CRT_FLOAT*,char*);
|
||||||
__int64 _atoi64(const char*);
|
__int64 _atoi64(const char*);
|
||||||
long double _atold(const char*);
|
long double _atold(const char*);
|
||||||
|
int _atoldbl(_LDOUBLE*,char*);
|
||||||
void _beep(unsigned int,unsigned int);
|
void _beep(unsigned int,unsigned int);
|
||||||
char* _ecvt(double,int,int*,int*);
|
char* _ecvt(double,int,int*,int*);
|
||||||
char* _fcvt(double,int,int*,int*);
|
char* _fcvt(double,int,int*,int*);
|
||||||
|
|
Loading…
Reference in New Issue