2001-04-10 23:21:43 +00:00
|
|
|
/*
|
|
|
|
* Standard library definitions
|
|
|
|
*
|
|
|
|
* Derived from the mingw header written by Colin Peters.
|
|
|
|
* Modified for Wine use by Jon Griffiths and Francois Gouget.
|
|
|
|
* This file is in the public domain.
|
|
|
|
*/
|
|
|
|
#ifndef __WINE_STDLIB_H
|
|
|
|
#define __WINE_STDLIB_H
|
2008-12-11 21:37:34 +00:00
|
|
|
|
2022-12-08 05:14:11 +00:00
|
|
|
#include <corecrt_malloc.h>
|
2020-02-24 15:35:44 +00:00
|
|
|
#include <corecrt_wstdlib.h>
|
2022-11-14 05:41:10 +00:00
|
|
|
#include <limits.h>
|
2001-04-10 23:21:43 +00:00
|
|
|
|
2007-02-20 08:35:41 +00:00
|
|
|
#include <pshpack8.h>
|
|
|
|
|
2007-08-30 14:15:47 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
float f;
|
|
|
|
} _CRT_FLOAT;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
double x;
|
|
|
|
} _CRT_DOUBLE;
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
unsigned char ld[10];
|
|
|
|
} _LDOUBLE;
|
|
|
|
|
2001-04-10 23:21:43 +00:00
|
|
|
#define EXIT_SUCCESS 0
|
|
|
|
#define EXIT_FAILURE -1
|
|
|
|
#define RAND_MAX 0x7FFF
|
|
|
|
|
|
|
|
#ifndef _MAX_PATH
|
|
|
|
#define _MAX_DRIVE 3
|
|
|
|
#define _MAX_FNAME 256
|
|
|
|
#define _MAX_DIR _MAX_FNAME
|
|
|
|
#define _MAX_EXT _MAX_FNAME
|
|
|
|
#define _MAX_PATH 260
|
|
|
|
#endif
|
|
|
|
|
2010-06-06 15:24:09 +00:00
|
|
|
/* Make the secure string functions (names end in "_s") truncate their output */
|
|
|
|
#define _TRUNCATE ((size_t)-1)
|
2001-04-10 23:21:43 +00:00
|
|
|
|
2004-06-25 01:19:15 +00:00
|
|
|
typedef struct _div_t {
|
2001-04-10 23:21:43 +00:00
|
|
|
int quot;
|
|
|
|
int rem;
|
2004-06-25 01:19:15 +00:00
|
|
|
} div_t;
|
2001-04-10 23:21:43 +00:00
|
|
|
|
2004-06-25 01:19:15 +00:00
|
|
|
typedef struct _ldiv_t {
|
2009-05-23 09:38:59 +00:00
|
|
|
__msvcrt_long quot;
|
|
|
|
__msvcrt_long rem;
|
2004-06-25 01:19:15 +00:00
|
|
|
} ldiv_t;
|
2001-04-10 23:21:43 +00:00
|
|
|
|
2018-05-04 03:44:24 +00:00
|
|
|
typedef struct _lldiv_t {
|
|
|
|
__int64 quot;
|
|
|
|
__int64 rem;
|
|
|
|
} lldiv_t;
|
|
|
|
|
2016-09-01 17:27:40 +00:00
|
|
|
|
|
|
|
#define _countof(x) (sizeof(x)/sizeof((x)[0]))
|
|
|
|
|
2001-04-10 23:21:43 +00:00
|
|
|
#define __max(a,b) (((a) > (b)) ? (a) : (b))
|
|
|
|
#define __min(a,b) (((a) < (b)) ? (a) : (b))
|
|
|
|
#ifndef __cplusplus
|
|
|
|
#define max(a,b) (((a) > (b)) ? (a) : (b))
|
|
|
|
#define min(a,b) (((a) < (b)) ? (a) : (b))
|
|
|
|
#endif
|
|
|
|
|
2002-11-30 01:52:30 +00:00
|
|
|
/* _set_error_mode() constants */
|
|
|
|
#define _OUT_TO_DEFAULT 0
|
|
|
|
#define _OUT_TO_STDERR 1
|
|
|
|
#define _OUT_TO_MSGBOX 2
|
|
|
|
#define _REPORT_ERRMODE 3
|
|
|
|
|
2011-01-19 22:21:11 +00:00
|
|
|
/* _set_abort_behavior codes */
|
|
|
|
#define _WRITE_ABORT_MSG 1
|
|
|
|
#define _CALL_REPORTFAULT 2
|
2001-04-10 23:21:43 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2020-02-27 10:58:43 +00:00
|
|
|
#if defined(__i386__) || defined(_UCRT)
|
2008-12-15 15:20:08 +00:00
|
|
|
|
2020-11-24 17:50:06 +00:00
|
|
|
_ACRTIMP unsigned int* __cdecl __p__osver(void);
|
|
|
|
_ACRTIMP unsigned int* __cdecl __p__winver(void);
|
|
|
|
_ACRTIMP unsigned int* __cdecl __p__winmajor(void);
|
|
|
|
_ACRTIMP unsigned int* __cdecl __p__winminor(void);
|
|
|
|
_ACRTIMP int* __cdecl __p___argc(void);
|
|
|
|
_ACRTIMP char*** __cdecl __p___argv(void);
|
|
|
|
_ACRTIMP wchar_t*** __cdecl __p___wargv(void);
|
|
|
|
_ACRTIMP char*** __cdecl __p__environ(void);
|
|
|
|
_ACRTIMP wchar_t*** __cdecl __p__wenviron(void);
|
|
|
|
_ACRTIMP int* __cdecl __p__fmode(void);
|
|
|
|
#define _osver (*__p__osver())
|
|
|
|
#define _winver (*__p__winver())
|
|
|
|
#define _winmajor (*__p__winmajor())
|
|
|
|
#define _winminor (*__p__winminor())
|
|
|
|
#define __argc (*__p___argc())
|
|
|
|
#define __argv (*__p___argv())
|
|
|
|
#define __wargv (*__p___wargv())
|
|
|
|
#define _environ (*__p__environ())
|
|
|
|
#define _wenviron (*__p__wenviron())
|
|
|
|
#define _fmode (*__p__fmode())
|
2008-12-15 15:20:08 +00:00
|
|
|
|
|
|
|
#else /* __i386__ */
|
|
|
|
|
|
|
|
extern unsigned int _osver;
|
|
|
|
extern unsigned int _winver;
|
|
|
|
extern unsigned int _winmajor;
|
|
|
|
extern unsigned int _winminor;
|
|
|
|
extern int __argc;
|
|
|
|
extern char **__argv;
|
|
|
|
extern wchar_t **__wargv;
|
|
|
|
extern char **_environ;
|
|
|
|
extern wchar_t **_wenviron;
|
|
|
|
extern unsigned int _fmode;
|
|
|
|
|
|
|
|
#endif /* __i386__ */
|
|
|
|
|
2020-11-24 17:50:06 +00:00
|
|
|
_ACRTIMP int __cdecl ___mb_cur_max_func(void);
|
|
|
|
#define __mb_cur_max ___mb_cur_max_func()
|
|
|
|
_ACRTIMP __msvcrt_ulong* __cdecl __doserrno(void);
|
|
|
|
#define _doserrno (*__doserrno())
|
|
|
|
_ACRTIMP int* __cdecl _errno(void);
|
|
|
|
#define errno (*_errno())
|
2008-12-15 15:20:08 +00:00
|
|
|
|
2001-04-10 23:21:43 +00:00
|
|
|
/* FIXME: We need functions to access these:
|
|
|
|
* int _sys_nerr;
|
|
|
|
* char** _sys_errlist;
|
|
|
|
*/
|
|
|
|
|
2020-11-24 17:50:06 +00:00
|
|
|
_ACRTIMP errno_t __cdecl _get_doserrno(int*);
|
|
|
|
_ACRTIMP errno_t __cdecl _get_errno(int*);
|
|
|
|
_ACRTIMP errno_t __cdecl _set_doserrno(int);
|
|
|
|
_ACRTIMP errno_t __cdecl _set_errno(int);
|
2001-04-10 23:21:43 +00:00
|
|
|
|
2020-12-01 12:52:43 +00:00
|
|
|
_ACRTIMP errno_t __cdecl _set_fmode(int);
|
|
|
|
_ACRTIMP errno_t __cdecl _get_fmode(int*);
|
|
|
|
|
2020-04-06 18:26:49 +00:00
|
|
|
#ifndef _CRT_ONEXIT_T_DEFINED
|
|
|
|
#define _CRT_ONEXIT_T_DEFINED
|
2008-12-17 13:45:18 +00:00
|
|
|
typedef int (__cdecl *_onexit_t)(void);
|
2020-04-06 18:26:49 +00:00
|
|
|
#endif
|
2008-12-17 13:45:18 +00:00
|
|
|
|
|
|
|
|
2020-11-24 17:50:06 +00:00
|
|
|
_ACRTIMP int __cdecl _atodbl(_CRT_DOUBLE*,char*);
|
|
|
|
_ACRTIMP int __cdecl _atodbl_l(_CRT_DOUBLE*,char*,_locale_t);
|
|
|
|
_ACRTIMP int __cdecl _atoflt(_CRT_FLOAT*,char*);
|
|
|
|
_ACRTIMP int __cdecl _atoflt_l(_CRT_FLOAT*,char*,_locale_t);
|
|
|
|
_ACRTIMP __int64 __cdecl _atoi64(const char*);
|
|
|
|
_ACRTIMP long double __cdecl _atold(const char*);
|
|
|
|
_ACRTIMP int __cdecl _atoldbl(_LDOUBLE*,char*);
|
|
|
|
_ACRTIMP void __cdecl _beep(unsigned int,unsigned int);
|
2021-10-13 11:19:43 +00:00
|
|
|
_ACRTIMP unsigned short __cdecl _byteswap_ushort(unsigned short);
|
|
|
|
_ACRTIMP __msvcrt_ulong __cdecl _byteswap_ulong(__msvcrt_ulong);
|
|
|
|
_ACRTIMP unsigned __int64 __cdecl _byteswap_uint64(unsigned __int64);
|
2020-11-24 17:50:06 +00:00
|
|
|
_ACRTIMP char* __cdecl _ecvt(double,int,int*,int*);
|
|
|
|
_ACRTIMP char* __cdecl _fcvt(double,int,int*,int*);
|
|
|
|
_ACRTIMP char* __cdecl _fullpath(char*,const char*,size_t);
|
|
|
|
_ACRTIMP char* __cdecl _gcvt(double,int,char*);
|
|
|
|
_ACRTIMP errno_t __cdecl _gcvt_s(char*, size_t, double, int);
|
|
|
|
_ACRTIMP char* __cdecl _i64toa(__int64,char*,int);
|
|
|
|
_ACRTIMP errno_t __cdecl _i64toa_s(__int64, char*, size_t, int);
|
|
|
|
_ACRTIMP char* __cdecl _itoa(int,char*,int);
|
|
|
|
_ACRTIMP errno_t __cdecl _itoa_s(int,char*,size_t,int);
|
|
|
|
_ACRTIMP char* __cdecl _ltoa(__msvcrt_long,char*,int);
|
|
|
|
_ACRTIMP errno_t __cdecl _ltoa_s(__msvcrt_long, char*, size_t, int);
|
2021-03-15 15:07:38 +00:00
|
|
|
#ifndef _lrotl
|
2020-11-24 17:50:06 +00:00
|
|
|
_ACRTIMP __msvcrt_ulong __cdecl _lrotl(__msvcrt_ulong,int);
|
2021-03-15 15:07:38 +00:00
|
|
|
#endif
|
|
|
|
#ifndef _lrotr
|
2020-11-24 17:50:06 +00:00
|
|
|
_ACRTIMP __msvcrt_ulong __cdecl _lrotr(__msvcrt_ulong,int);
|
2021-03-15 15:07:38 +00:00
|
|
|
#endif
|
2020-11-24 17:50:06 +00:00
|
|
|
_ACRTIMP void __cdecl _makepath(char*,const char*,const char*,const char*,const char*);
|
|
|
|
_ACRTIMP int __cdecl _makepath_s(char*,size_t,const char*,const char*,const char*,const char*);
|
|
|
|
_ACRTIMP size_t __cdecl _mbstrlen(const char*);
|
|
|
|
_ACRTIMP _onexit_t __cdecl _onexit(_onexit_t);
|
|
|
|
_ACRTIMP int __cdecl _putenv(const char*);
|
2022-10-20 14:56:25 +00:00
|
|
|
_ACRTIMP errno_t __cdecl _putenv_s(const char*,const char*);
|
2021-03-15 15:07:38 +00:00
|
|
|
#ifndef _rotl
|
2020-11-24 17:50:06 +00:00
|
|
|
_ACRTIMP unsigned int __cdecl _rotl(unsigned int,int);
|
2021-03-15 15:07:38 +00:00
|
|
|
#endif
|
|
|
|
#ifndef _rotr
|
2020-11-24 17:50:06 +00:00
|
|
|
_ACRTIMP unsigned int __cdecl _rotr(unsigned int,int);
|
2021-03-15 15:07:38 +00:00
|
|
|
#endif
|
2020-11-24 17:50:06 +00:00
|
|
|
_ACRTIMP void __cdecl _searchenv(const char*,const char*,char*);
|
|
|
|
_ACRTIMP int __cdecl _set_error_mode(int);
|
|
|
|
_ACRTIMP void __cdecl _seterrormode(int);
|
|
|
|
_ACRTIMP void __cdecl _sleep(__msvcrt_ulong);
|
|
|
|
_ACRTIMP void __cdecl _splitpath(const char*,char*,char*,char*,char*);
|
2022-11-03 03:47:57 +00:00
|
|
|
_ACRTIMP errno_t __cdecl _splitpath_s(const char*,char*,size_t,char*,size_t,char*,size_t,char*,size_t);
|
2020-11-24 17:50:06 +00:00
|
|
|
_ACRTIMP void __cdecl _swab(char*,char*,int);
|
|
|
|
_ACRTIMP char* __cdecl _ui64toa(unsigned __int64,char*,int);
|
|
|
|
_ACRTIMP errno_t __cdecl _ui64toa_s(unsigned __int64,char*,size_t,int);
|
|
|
|
_ACRTIMP char* __cdecl _ultoa(__msvcrt_ulong,char*,int);
|
|
|
|
_ACRTIMP errno_t __cdecl _ultoa_s(__msvcrt_ulong,char*,size_t,int);
|
2008-12-17 13:45:18 +00:00
|
|
|
|
2020-04-15 16:27:22 +00:00
|
|
|
_ACRTIMP DECLSPEC_NORETURN void __cdecl _Exit(int);
|
|
|
|
_ACRTIMP DECLSPEC_NORETURN void __cdecl _exit(int);
|
|
|
|
_ACRTIMP DECLSPEC_NORETURN void __cdecl abort(void);
|
2020-11-24 17:50:06 +00:00
|
|
|
_ACRTIMP int __cdecl abs(int);
|
|
|
|
_ACRTIMP int __cdecl atexit(void (__cdecl *)(void));
|
|
|
|
_ACRTIMP double __cdecl atof(const char*);
|
|
|
|
_ACRTIMP int __cdecl atoi(const char*);
|
|
|
|
_ACRTIMP int __cdecl _atoi_l(const char*,_locale_t);
|
|
|
|
_ACRTIMP __msvcrt_long __cdecl atol(const char*);
|
|
|
|
_ACRTIMP __int64 __cdecl atoll(const char*);
|
2003-11-28 23:17:28 +00:00
|
|
|
#ifndef __i386__
|
2020-11-24 17:50:06 +00:00
|
|
|
_ACRTIMP div_t __cdecl div(int,int);
|
|
|
|
_ACRTIMP ldiv_t __cdecl ldiv(__msvcrt_long,__msvcrt_long);
|
2001-04-10 23:21:43 +00:00
|
|
|
#endif
|
2020-11-24 17:50:06 +00:00
|
|
|
_ACRTIMP lldiv_t __cdecl lldiv(__int64,__int64);
|
2020-04-15 16:27:22 +00:00
|
|
|
_ACRTIMP DECLSPEC_NORETURN void __cdecl exit(int);
|
2020-11-24 17:50:06 +00:00
|
|
|
_ACRTIMP char* __cdecl getenv(const char*);
|
2023-08-22 05:32:06 +00:00
|
|
|
_ACRTIMP errno_t __cdecl getenv_s(size_t*,char*,size_t,const char*);
|
2020-11-24 17:50:06 +00:00
|
|
|
_ACRTIMP __msvcrt_long __cdecl labs(__msvcrt_long);
|
|
|
|
_ACRTIMP __int64 __cdecl llabs(__int64);
|
|
|
|
_ACRTIMP int __cdecl mblen(const char*,size_t);
|
|
|
|
_ACRTIMP void __cdecl perror(const char*);
|
|
|
|
_ACRTIMP int __cdecl rand(void);
|
|
|
|
_ACRTIMP errno_t __cdecl rand_s(unsigned int*);
|
|
|
|
_ACRTIMP void __cdecl srand(unsigned int);
|
|
|
|
_ACRTIMP float __cdecl strtof(const char*,char**);
|
2024-01-18 05:29:59 +00:00
|
|
|
_ACRTIMP float __cdecl _strtof_l(const char*,char**,_locale_t);
|
2020-11-24 17:50:06 +00:00
|
|
|
_ACRTIMP double __cdecl strtod(const char*,char**);
|
|
|
|
_ACRTIMP __msvcrt_long __cdecl strtol(const char*,char**,int);
|
|
|
|
_ACRTIMP __msvcrt_ulong __cdecl strtoul(const char*,char**,int);
|
2022-06-14 06:17:26 +00:00
|
|
|
_ACRTIMP __int64 __cdecl _strtoll_l(const char*,char**,int,_locale_t);
|
|
|
|
_ACRTIMP unsigned __int64 __cdecl _strtoull_l(const char*,char**,int,_locale_t);
|
2020-11-24 17:50:06 +00:00
|
|
|
_ACRTIMP __int64 __cdecl _strtoi64(const char*,char**,int);
|
|
|
|
_ACRTIMP __int64 __cdecl _strtoi64_l(const char*,char**,int,_locale_t);
|
|
|
|
_ACRTIMP unsigned __int64 __cdecl _strtoui64(const char*,char**,int);
|
|
|
|
_ACRTIMP unsigned __int64 __cdecl _strtoui64_l(const char*,char**,int,_locale_t);
|
|
|
|
_ACRTIMP int __cdecl system(const char*);
|
|
|
|
_ACRTIMP void* __cdecl bsearch(const void*,const void*,size_t,size_t,int (__cdecl *)(const void*,const void*));
|
|
|
|
_ACRTIMP void __cdecl qsort(void*,size_t,size_t,int (__cdecl *)(const void*,const void*));
|
2001-04-10 23:21:43 +00:00
|
|
|
|
2020-12-04 14:49:58 +00:00
|
|
|
typedef void (__cdecl *_purecall_handler)(void);
|
|
|
|
_ACRTIMP _purecall_handler __cdecl _set_purecall_handler(_purecall_handler);
|
|
|
|
_ACRTIMP _purecall_handler __cdecl _get_purecall_handler(void);
|
|
|
|
|
2010-04-14 12:34:27 +00:00
|
|
|
typedef void (__cdecl *_invalid_parameter_handler)(const wchar_t*, const wchar_t*, const wchar_t*, unsigned, uintptr_t);
|
2020-11-24 17:50:06 +00:00
|
|
|
_ACRTIMP _invalid_parameter_handler __cdecl _set_invalid_parameter_handler(_invalid_parameter_handler);
|
|
|
|
_ACRTIMP _invalid_parameter_handler __cdecl _get_invalid_parameter_handler(void);
|
2020-03-19 14:42:00 +00:00
|
|
|
_ACRTIMP _invalid_parameter_handler __cdecl _get_thread_local_invalid_parameter_handler(void);
|
|
|
|
_ACRTIMP _invalid_parameter_handler __cdecl _set_thread_local_invalid_parameter_handler(_invalid_parameter_handler);
|
2010-04-14 12:34:27 +00:00
|
|
|
void __cdecl _invalid_parameter(const wchar_t *expr, const wchar_t *func, const wchar_t *file,
|
|
|
|
unsigned int line, uintptr_t arg);
|
|
|
|
|
2020-05-20 23:46:03 +00:00
|
|
|
#ifdef _UCRT
|
|
|
|
_ACRTIMP double __cdecl _strtold_l(const char*,char**,_locale_t);
|
|
|
|
static inline long double strtold(const char *string, char **endptr) { return _strtold_l(string, endptr, NULL); }
|
|
|
|
#endif /* _UCRT */
|
|
|
|
|
2001-04-10 23:21:43 +00:00
|
|
|
#ifdef __cplusplus
|
2023-08-22 05:32:06 +00:00
|
|
|
extern "C++" {
|
|
|
|
|
|
|
|
template <size_t size>
|
|
|
|
inline errno_t getenv_s(size_t *ret, char (&buf)[size], const char *var)
|
|
|
|
{
|
|
|
|
return getenv_s(ret, buf, size, var);
|
|
|
|
}
|
|
|
|
|
|
|
|
} /* extern "C++" */
|
|
|
|
|
2001-04-10 23:21:43 +00:00
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#define environ _environ
|
|
|
|
#define onexit_t _onexit_t
|
|
|
|
|
2003-03-22 21:15:41 +00:00
|
|
|
static inline char* ecvt(double value, int ndigit, int* decpt, int* sign) { return _ecvt(value, ndigit, decpt, sign); }
|
|
|
|
static inline char* fcvt(double value, int ndigit, int* decpt, int* sign) { return _fcvt(value, ndigit, decpt, sign); }
|
|
|
|
static inline char* gcvt(double value, int ndigit, char* buf) { return _gcvt(value, ndigit, buf); }
|
|
|
|
static inline char* itoa(int value, char* str, int radix) { return _itoa(value, str, radix); }
|
2009-05-23 09:38:59 +00:00
|
|
|
static inline char* ltoa(__msvcrt_long value, char* str, int radix) { return _ltoa(value, str, radix); }
|
2003-03-22 21:15:41 +00:00
|
|
|
static inline _onexit_t onexit(_onexit_t func) { return _onexit(func); }
|
|
|
|
static inline int putenv(const char* str) { return _putenv(str); }
|
2019-08-06 10:23:12 +00:00
|
|
|
static inline __int64 strtoll(const char *ptr, char **endptr, int base) { return _strtoi64(ptr, endptr, base); }
|
|
|
|
static inline unsigned __int64 __cdecl strtoull(const char *ptr, char **endptr, int base) { return _strtoui64(ptr, endptr, base); }
|
2003-07-18 22:57:15 +00:00
|
|
|
static inline void swab(char* src, char* dst, int len) { _swab(src, dst, len); }
|
2009-05-23 09:38:59 +00:00
|
|
|
static inline char* ultoa(__msvcrt_ulong value, char* str, int radix) { return _ultoa(value, str, radix); }
|
2003-11-28 23:17:28 +00:00
|
|
|
|
|
|
|
#ifdef __i386__
|
|
|
|
static inline div_t __wine_msvcrt_div(int num, int denom)
|
|
|
|
{
|
|
|
|
extern unsigned __int64 div(int,int);
|
|
|
|
div_t ret;
|
|
|
|
unsigned __int64 res = div(num,denom);
|
|
|
|
ret.quot = (int)res;
|
|
|
|
ret.rem = (int)(res >> 32);
|
|
|
|
return ret;
|
|
|
|
}
|
2009-05-23 09:38:59 +00:00
|
|
|
static inline ldiv_t __wine_msvcrt_ldiv(__msvcrt_long num, __msvcrt_long denom)
|
2003-11-28 23:17:28 +00:00
|
|
|
{
|
2009-05-23 09:38:59 +00:00
|
|
|
extern unsigned __int64 ldiv(__msvcrt_long,__msvcrt_long);
|
2003-11-28 23:17:28 +00:00
|
|
|
ldiv_t ret;
|
|
|
|
unsigned __int64 res = ldiv(num,denom);
|
2009-05-23 09:38:59 +00:00
|
|
|
ret.quot = (__msvcrt_long)res;
|
|
|
|
ret.rem = (__msvcrt_long)(res >> 32);
|
2003-11-28 23:17:28 +00:00
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
#define div(num,denom) __wine_msvcrt_div(num,denom)
|
|
|
|
#define ldiv(num,denom) __wine_msvcrt_ldiv(num,denom)
|
|
|
|
#endif
|
|
|
|
|
2007-02-20 08:35:41 +00:00
|
|
|
#include <poppack.h>
|
|
|
|
|
2001-04-10 23:21:43 +00:00
|
|
|
#endif /* __WINE_STDLIB_H */
|