Commit 579fc688 authored by Alexandre Julliard's avatar Alexandre Julliard

include: Use proper dllimports for msvcrt functions.

parent 9dc28927
......@@ -40,8 +40,6 @@ typedef SSIZE_T streamsize;
#endif
void __cdecl _invalid_parameter_noinfo(void);
void __cdecl _invalid_parameter(const wchar_t*, const wchar_t*,
const wchar_t*, unsigned int, uintptr_t);
BOOL __cdecl __uncaught_exception(void);
int __cdecl _callnewh(size_t);
......
......@@ -24,6 +24,7 @@
#endif
#include <corecrt.h>
#include <wine/asm.h>
double __cdecl sin(double);
double __cdecl cos(double);
......@@ -48,9 +49,21 @@ float powf(float x, float y) { return pow(x, y); }
float sqrtf(float x) { return sqrt(x); }
float floorf(float x) { return floor(x); }
float ceilf(float x) { return ceil(x); }
__ASM_GLOBAL_IMPORT(sinf)
__ASM_GLOBAL_IMPORT(cosf)
__ASM_GLOBAL_IMPORT(tanf)
__ASM_GLOBAL_IMPORT(atan2f)
__ASM_GLOBAL_IMPORT(expf)
__ASM_GLOBAL_IMPORT(logf)
__ASM_GLOBAL_IMPORT(powf)
__ASM_GLOBAL_IMPORT(sqrtf)
__ASM_GLOBAL_IMPORT(floorf)
__ASM_GLOBAL_IMPORT(ceilf)
#endif
#if _MSVCR_VER < 120
double exp2(double x) { return pow(2.0, x); }
float exp2f(float x) { return powf(2.0f, x); }
__ASM_GLOBAL_IMPORT(exp2)
__ASM_GLOBAL_IMPORT(exp2f)
#endif
......@@ -28,7 +28,7 @@ extern "C" {
#ifdef NDEBUG
#define assert(_expr) ((void)0)
#else
extern void __cdecl _assert(const char *, const char *, unsigned int);
_ACRTIMP void __cdecl _assert(const char *, const char *, unsigned int);
#define assert(_expr) (void)((!!(_expr)) || (_assert(#_expr, __FILE__, __LINE__), 0))
#endif
......
......@@ -14,23 +14,23 @@
extern "C" {
#endif
char* __cdecl _cgets(char*);
int WINAPIV _cprintf(const char*,...);
int __cdecl _cputs(const char*);
int WINAPIV _cscanf(const char*,...);
int __cdecl _getch(void);
int __cdecl _getche(void);
int __cdecl _kbhit(void);
int __cdecl _putch(int);
int __cdecl _ungetch(int);
_ACRTIMP char* __cdecl _cgets(char*);
_ACRTIMP int WINAPIV _cprintf(const char*,...);
_ACRTIMP int __cdecl _cputs(const char*);
_ACRTIMP int WINAPIV _cscanf(const char*,...);
_ACRTIMP int __cdecl _getch(void);
_ACRTIMP int __cdecl _getche(void);
_ACRTIMP int __cdecl _kbhit(void);
_ACRTIMP int __cdecl _putch(int);
_ACRTIMP int __cdecl _ungetch(int);
#ifdef _M_IX86
int __cdecl _inp(unsigned short);
__msvcrt_ulong __cdecl _inpd(unsigned short);
unsigned short __cdecl _inpw(unsigned short);
int __cdecl _outp(unsigned short, int);
__msvcrt_ulong __cdecl _outpd(unsigned short, __msvcrt_ulong);
unsigned short __cdecl _outpw(unsigned short, unsigned short);
_ACRTIMP int __cdecl _inp(unsigned short);
_ACRTIMP __msvcrt_ulong __cdecl _inpd(unsigned short);
_ACRTIMP unsigned short __cdecl _inpw(unsigned short);
_ACRTIMP int __cdecl _outp(unsigned short, int);
_ACRTIMP __msvcrt_ulong __cdecl _outpd(unsigned short, __msvcrt_ulong);
_ACRTIMP unsigned short __cdecl _outpw(unsigned short, unsigned short);
#endif
#ifdef __cplusplus
......@@ -53,8 +53,8 @@ static inline unsigned short outpw(unsigned short i, unsigned short j) { return
#endif
#if defined(__GNUC__) && (__GNUC__ < 4)
extern int WINAPIV cprintf(const char*,...) __attribute__((alias("_cprintf"),format(printf,1,2)));
extern int WINAPIV cscanf(const char*,...) __attribute__((alias("_cscanf"),format(scanf,1,2)));
_ACRTIMP int WINAPIV cprintf(const char*,...) __attribute__((alias("_cprintf"),format(printf,1,2)));
_ACRTIMP int WINAPIV cscanf(const char*,...) __attribute__((alias("_cscanf"),format(scanf,1,2)));
#else
#define cprintf _cprintf
#define cscanf _cscanf
......
......@@ -24,28 +24,28 @@ extern "C" {
#define _LEADBYTE 0x8000
#define _ALPHA (0x0100|_UPPER|_LOWER) /* (C1_ALPHA|_UPPER|_LOWER) */
int __cdecl _iswblank_l(wint_t,_locale_t);
int __cdecl _iswctype_l(wint_t,wctype_t,_locale_t);
wchar_t __cdecl _towlower_l(wchar_t,_locale_t);
wchar_t __cdecl _towupper_l(wchar_t,_locale_t);
int __cdecl is_wctype(wint_t,wctype_t);
int __cdecl isleadbyte(int);
int __cdecl iswalnum(wint_t);
int __cdecl iswalpha(wint_t);
int __cdecl iswascii(wint_t);
int __cdecl iswblank(wint_t);
int __cdecl iswcntrl(wint_t);
int __cdecl iswctype(wint_t,wctype_t);
int __cdecl iswdigit(wint_t);
int __cdecl iswgraph(wint_t);
int __cdecl iswlower(wint_t);
int __cdecl iswprint(wint_t);
int __cdecl iswpunct(wint_t);
int __cdecl iswspace(wint_t);
int __cdecl iswupper(wint_t);
int __cdecl iswxdigit(wint_t);
wchar_t __cdecl towlower(wchar_t);
wchar_t __cdecl towupper(wchar_t);
_ACRTIMP int __cdecl _iswblank_l(wint_t,_locale_t);
_ACRTIMP int __cdecl _iswctype_l(wint_t,wctype_t,_locale_t);
_ACRTIMP wchar_t __cdecl _towlower_l(wchar_t,_locale_t);
_ACRTIMP wchar_t __cdecl _towupper_l(wchar_t,_locale_t);
_ACRTIMP int __cdecl is_wctype(wint_t,wctype_t);
_ACRTIMP int __cdecl isleadbyte(int);
_ACRTIMP int __cdecl iswalnum(wint_t);
_ACRTIMP int __cdecl iswalpha(wint_t);
_ACRTIMP int __cdecl iswascii(wint_t);
_ACRTIMP int __cdecl iswblank(wint_t);
_ACRTIMP int __cdecl iswcntrl(wint_t);
_ACRTIMP int __cdecl iswctype(wint_t,wctype_t);
_ACRTIMP int __cdecl iswdigit(wint_t);
_ACRTIMP int __cdecl iswgraph(wint_t);
_ACRTIMP int __cdecl iswlower(wint_t);
_ACRTIMP int __cdecl iswprint(wint_t);
_ACRTIMP int __cdecl iswpunct(wint_t);
_ACRTIMP int __cdecl iswspace(wint_t);
_ACRTIMP int __cdecl iswupper(wint_t);
_ACRTIMP int __cdecl iswxdigit(wint_t);
_ACRTIMP wchar_t __cdecl towlower(wchar_t);
_ACRTIMP wchar_t __cdecl towupper(wchar_t);
#ifdef __cplusplus
}
......
......@@ -12,11 +12,11 @@
extern "C" {
#endif
int __cdecl _wchdir(const wchar_t*);
wchar_t* __cdecl _wgetcwd(wchar_t*,int);
wchar_t* __cdecl _wgetdcwd(int,wchar_t*,int);
int __cdecl _wmkdir(const wchar_t*);
int __cdecl _wrmdir(const wchar_t*);
_ACRTIMP int __cdecl _wchdir(const wchar_t*);
_ACRTIMP wchar_t* __cdecl _wgetcwd(wchar_t*,int);
_ACRTIMP wchar_t* __cdecl _wgetdcwd(int,wchar_t*,int);
_ACRTIMP int __cdecl _wmkdir(const wchar_t*);
_ACRTIMP int __cdecl _wrmdir(const wchar_t*);
#ifdef __cplusplus
}
......
......@@ -86,22 +86,22 @@ struct _wfinddata64_t {
extern "C" {
#endif
int __cdecl _waccess(const wchar_t*,int);
int __cdecl _wchmod(const wchar_t*,int);
int __cdecl _wcreat(const wchar_t*,int);
intptr_t __cdecl _wfindfirst32(const wchar_t*,struct _wfinddata32_t*);
intptr_t __cdecl _wfindfirst32i64(const wchar_t*, struct _wfinddata32i64_t*);
intptr_t __cdecl _wfindfirst64(const wchar_t*,struct _wfinddata64_t*);
intptr_t __cdecl _wfindfirst64i32(const wchar_t*, struct _wfinddata64i32_t*);
int __cdecl _wfindnext32(intptr_t,struct _wfinddata32_t*);
int __cdecl _wfindnext32i64(intptr_t,struct _wfinddata32i64_t*);
int __cdecl _wfindnext64(intptr_t,struct _wfinddata64_t*);
int __cdecl _wfindnext64i32(intptr_t,struct _wfinddata64i32_t*);
wchar_t* __cdecl _wmktemp(wchar_t*);
int WINAPIV _wopen(const wchar_t*,int,...);
int __cdecl _wrename(const wchar_t*,const wchar_t*);
int WINAPIV _wsopen(const wchar_t*,int,int,...);
int __cdecl _wunlink(const wchar_t*);
_ACRTIMP int __cdecl _waccess(const wchar_t*,int);
_ACRTIMP int __cdecl _wchmod(const wchar_t*,int);
_ACRTIMP int __cdecl _wcreat(const wchar_t*,int);
_ACRTIMP intptr_t __cdecl _wfindfirst32(const wchar_t*,struct _wfinddata32_t*);
_ACRTIMP intptr_t __cdecl _wfindfirst32i64(const wchar_t*, struct _wfinddata32i64_t*);
_ACRTIMP intptr_t __cdecl _wfindfirst64(const wchar_t*,struct _wfinddata64_t*);
_ACRTIMP intptr_t __cdecl _wfindfirst64i32(const wchar_t*, struct _wfinddata64i32_t*);
_ACRTIMP int __cdecl _wfindnext32(intptr_t,struct _wfinddata32_t*);
_ACRTIMP int __cdecl _wfindnext32i64(intptr_t,struct _wfinddata32i64_t*);
_ACRTIMP int __cdecl _wfindnext64(intptr_t,struct _wfinddata64_t*);
_ACRTIMP int __cdecl _wfindnext64i32(intptr_t,struct _wfinddata64i32_t*);
_ACRTIMP wchar_t* __cdecl _wmktemp(wchar_t*);
_ACRTIMP int WINAPIV _wopen(const wchar_t*,int,...);
_ACRTIMP int __cdecl _wrename(const wchar_t*,const wchar_t*);
_ACRTIMP int WINAPIV _wsopen(const wchar_t*,int,int,...);
_ACRTIMP int __cdecl _wunlink(const wchar_t*);
#ifdef __cplusplus
}
......
......@@ -12,23 +12,23 @@
extern "C" {
#endif
intptr_t WINAPIV _wexecl(const wchar_t*,const wchar_t*,...);
intptr_t WINAPIV _wexecle(const wchar_t*,const wchar_t*,...);
intptr_t WINAPIV _wexeclp(const wchar_t*,const wchar_t*,...);
intptr_t WINAPIV _wexeclpe(const wchar_t*,const wchar_t*,...);
intptr_t __cdecl _wexecv(const wchar_t*,const wchar_t* const *);
intptr_t __cdecl _wexecve(const wchar_t*,const wchar_t* const *,const wchar_t* const *);
intptr_t __cdecl _wexecvp(const wchar_t*,const wchar_t* const *);
intptr_t __cdecl _wexecvpe(const wchar_t*,const wchar_t* const *,const wchar_t* const *);
intptr_t WINAPIV _wspawnl(int,const wchar_t*,const wchar_t*,...);
intptr_t WINAPIV _wspawnle(int,const wchar_t*,const wchar_t*,...);
intptr_t WINAPIV _wspawnlp(int,const wchar_t*,const wchar_t*,...);
intptr_t WINAPIV _wspawnlpe(int,const wchar_t*,const wchar_t*,...);
intptr_t __cdecl _wspawnv(int,const wchar_t*,const wchar_t* const *);
intptr_t __cdecl _wspawnve(int,const wchar_t*,const wchar_t* const *,const wchar_t* const *);
intptr_t __cdecl _wspawnvp(int,const wchar_t*,const wchar_t* const *);
intptr_t __cdecl _wspawnvpe(int,const wchar_t*,const wchar_t* const *,const wchar_t* const *);
int __cdecl _wsystem(const wchar_t*);
_ACRTIMP intptr_t WINAPIV _wexecl(const wchar_t*,const wchar_t*,...);
_ACRTIMP intptr_t WINAPIV _wexecle(const wchar_t*,const wchar_t*,...);
_ACRTIMP intptr_t WINAPIV _wexeclp(const wchar_t*,const wchar_t*,...);
_ACRTIMP intptr_t WINAPIV _wexeclpe(const wchar_t*,const wchar_t*,...);
_ACRTIMP intptr_t __cdecl _wexecv(const wchar_t*,const wchar_t* const *);
_ACRTIMP intptr_t __cdecl _wexecve(const wchar_t*,const wchar_t* const *,const wchar_t* const *);
_ACRTIMP intptr_t __cdecl _wexecvp(const wchar_t*,const wchar_t* const *);
_ACRTIMP intptr_t __cdecl _wexecvpe(const wchar_t*,const wchar_t* const *,const wchar_t* const *);
_ACRTIMP intptr_t WINAPIV _wspawnl(int,const wchar_t*,const wchar_t*,...);
_ACRTIMP intptr_t WINAPIV _wspawnle(int,const wchar_t*,const wchar_t*,...);
_ACRTIMP intptr_t WINAPIV _wspawnlp(int,const wchar_t*,const wchar_t*,...);
_ACRTIMP intptr_t WINAPIV _wspawnlpe(int,const wchar_t*,const wchar_t*,...);
_ACRTIMP intptr_t __cdecl _wspawnv(int,const wchar_t*,const wchar_t* const *);
_ACRTIMP intptr_t __cdecl _wspawnve(int,const wchar_t*,const wchar_t* const *,const wchar_t* const *);
_ACRTIMP intptr_t __cdecl _wspawnvp(int,const wchar_t*,const wchar_t* const *);
_ACRTIMP intptr_t __cdecl _wspawnvpe(int,const wchar_t*,const wchar_t* const *,const wchar_t* const *);
_ACRTIMP int __cdecl _wsystem(const wchar_t*);
#ifdef __cplusplus
}
......
......@@ -41,44 +41,44 @@ typedef struct _iobuf
#define WEOF (wint_t)(0xFFFF)
#endif
FILE *__cdecl __acrt_iob_func(unsigned index);
_ACRTIMP FILE *__cdecl __acrt_iob_func(unsigned index);
#define stdin (__acrt_iob_func(0))
#define stdout (__acrt_iob_func(1))
#define stderr (__acrt_iob_func(2))
wint_t __cdecl _fgetwc_nolock(FILE*);
wint_t __cdecl _fgetwchar(void);
wint_t __cdecl _fputwc_nolock(wint_t,FILE*);
wint_t __cdecl _fputwchar(wint_t);
wint_t __cdecl _getwc_nolock(FILE*);
wchar_t* __cdecl _getws(wchar_t*);
wint_t __cdecl _putwc_nolock(wint_t,FILE*);
int __cdecl _putws(const wchar_t*);
wint_t __cdecl _ungetwc_nolock(wint_t,FILE*);
FILE* __cdecl _wfdopen(int,const wchar_t*);
FILE* __cdecl _wfopen(const wchar_t*,const wchar_t*);
errno_t __cdecl _wfopen_s(FILE**,const wchar_t*,const wchar_t*);
FILE* __cdecl _wfreopen(const wchar_t*,const wchar_t*,FILE*);
FILE* __cdecl _wfsopen(const wchar_t*,const wchar_t*,int);
void __cdecl _wperror(const wchar_t*);
FILE* __cdecl _wpopen(const wchar_t*,const wchar_t*);
int __cdecl _wremove(const wchar_t*);
wchar_t* __cdecl _wtempnam(const wchar_t*,const wchar_t*);
wchar_t* __cdecl _wtmpnam(wchar_t*);
wint_t __cdecl fgetwc(FILE*);
wchar_t* __cdecl fgetws(wchar_t*,int,FILE*);
wint_t __cdecl fputwc(wint_t,FILE*);
int __cdecl fputws(const wchar_t*,FILE*);
int __cdecl fputws(const wchar_t*,FILE*);
wint_t __cdecl getwc(FILE*);
wint_t __cdecl getwchar(void);
wchar_t* __cdecl getws(wchar_t*);
wint_t __cdecl putwc(wint_t,FILE*);
wint_t __cdecl putwchar(wint_t);
int __cdecl putws(const wchar_t*);
wint_t __cdecl ungetwc(wint_t,FILE*);
_ACRTIMP wint_t __cdecl _fgetwc_nolock(FILE*);
_ACRTIMP wint_t __cdecl _fgetwchar(void);
_ACRTIMP wint_t __cdecl _fputwc_nolock(wint_t,FILE*);
_ACRTIMP wint_t __cdecl _fputwchar(wint_t);
_ACRTIMP wint_t __cdecl _getwc_nolock(FILE*);
_ACRTIMP wchar_t* __cdecl _getws(wchar_t*);
_ACRTIMP wint_t __cdecl _putwc_nolock(wint_t,FILE*);
_ACRTIMP int __cdecl _putws(const wchar_t*);
_ACRTIMP wint_t __cdecl _ungetwc_nolock(wint_t,FILE*);
_ACRTIMP FILE* __cdecl _wfdopen(int,const wchar_t*);
_ACRTIMP FILE* __cdecl _wfopen(const wchar_t*,const wchar_t*);
_ACRTIMP errno_t __cdecl _wfopen_s(FILE**,const wchar_t*,const wchar_t*);
_ACRTIMP FILE* __cdecl _wfreopen(const wchar_t*,const wchar_t*,FILE*);
_ACRTIMP FILE* __cdecl _wfsopen(const wchar_t*,const wchar_t*,int);
_ACRTIMP void __cdecl _wperror(const wchar_t*);
_ACRTIMP FILE* __cdecl _wpopen(const wchar_t*,const wchar_t*);
_ACRTIMP int __cdecl _wremove(const wchar_t*);
_ACRTIMP wchar_t* __cdecl _wtempnam(const wchar_t*,const wchar_t*);
_ACRTIMP wchar_t* __cdecl _wtmpnam(wchar_t*);
_ACRTIMP wint_t __cdecl fgetwc(FILE*);
_ACRTIMP wchar_t* __cdecl fgetws(wchar_t*,int,FILE*);
_ACRTIMP wint_t __cdecl fputwc(wint_t,FILE*);
_ACRTIMP int __cdecl fputws(const wchar_t*,FILE*);
_ACRTIMP int __cdecl fputws(const wchar_t*,FILE*);
_ACRTIMP wint_t __cdecl getwc(FILE*);
_ACRTIMP wint_t __cdecl getwchar(void);
_ACRTIMP wchar_t* __cdecl getws(wchar_t*);
_ACRTIMP wint_t __cdecl putwc(wint_t,FILE*);
_ACRTIMP wint_t __cdecl putwchar(wint_t);
_ACRTIMP int __cdecl putws(const wchar_t*);
_ACRTIMP wint_t __cdecl ungetwc(wint_t,FILE*);
#ifdef _UCRT
......@@ -361,8 +361,8 @@ _ACRTIMP int WINAPIV wprintf(const wchar_t*,...);
_ACRTIMP int WINAPIV wprintf_s(const wchar_t*,...);
#ifdef _CRT_NON_CONFORMING_SWPRINTFS
int WINAPIV swprintf(wchar_t*,const wchar_t*,...);
int __cdecl vswprintf(wchar_t*,const wchar_t*,__ms_va_list);
_ACRTIMP int WINAPIV swprintf(wchar_t*,const wchar_t*,...);
_ACRTIMP int __cdecl vswprintf(wchar_t*,const wchar_t*,__ms_va_list);
#else /* _CRT_NON_CONFORMING_SWPRINTFS */
static inline int vswprintf(wchar_t *buffer, size_t size, const wchar_t *format, __ms_va_list args) { return _vsnwprintf(buffer,size,format,args); }
static inline int WINAPIV swprintf(wchar_t *buffer, size_t size, const wchar_t *format, ...)
......
......@@ -12,46 +12,46 @@
extern "C" {
#endif
wchar_t* __cdecl _itow(int,wchar_t*,int);
errno_t __cdecl _itow_s(int,wchar_t*,int, int);
wchar_t* __cdecl _i64tow(__int64,wchar_t*,int);
errno_t __cdecl _i64tow_s(__int64, wchar_t*, size_t, int);
wchar_t* __cdecl _ltow(__msvcrt_long,wchar_t*,int);
errno_t __cdecl _ltow_s(__msvcrt_long,wchar_t*,int,int);
wchar_t* __cdecl _ui64tow(unsigned __int64,wchar_t*,int);
errno_t __cdecl _ui64tow_s(unsigned __int64, wchar_t*, size_t, int);
wchar_t* __cdecl _ultow(__msvcrt_ulong,wchar_t*,int);
errno_t __cdecl _ultow_s(__msvcrt_ulong, wchar_t*, size_t, int);
wchar_t* __cdecl _wfullpath(wchar_t*,const wchar_t*,size_t);
wchar_t* __cdecl _wgetenv(const wchar_t*);
void __cdecl _wmakepath(wchar_t*,const wchar_t*,const wchar_t*,const wchar_t*,const wchar_t*);
int __cdecl _wmakepath_s(wchar_t*,size_t,const wchar_t*,const wchar_t*,const wchar_t*,const wchar_t*);
void __cdecl _wperror(const wchar_t*);
int __cdecl _wputenv(const wchar_t*);
void __cdecl _wsearchenv(const wchar_t*,const wchar_t*,wchar_t*);
void __cdecl _wsplitpath(const wchar_t*,wchar_t*,wchar_t*,wchar_t*,wchar_t*);
errno_t __cdecl _wsplitpath_s(const wchar_t*,wchar_t*,size_t,wchar_t*,size_t,
_ACRTIMP wchar_t* __cdecl _itow(int,wchar_t*,int);
_ACRTIMP errno_t __cdecl _itow_s(int,wchar_t*,int, int);
_ACRTIMP wchar_t* __cdecl _i64tow(__int64,wchar_t*,int);
_ACRTIMP errno_t __cdecl _i64tow_s(__int64, wchar_t*, size_t, int);
_ACRTIMP wchar_t* __cdecl _ltow(__msvcrt_long,wchar_t*,int);
_ACRTIMP errno_t __cdecl _ltow_s(__msvcrt_long,wchar_t*,int,int);
_ACRTIMP wchar_t* __cdecl _ui64tow(unsigned __int64,wchar_t*,int);
_ACRTIMP errno_t __cdecl _ui64tow_s(unsigned __int64, wchar_t*, size_t, int);
_ACRTIMP wchar_t* __cdecl _ultow(__msvcrt_ulong,wchar_t*,int);
_ACRTIMP errno_t __cdecl _ultow_s(__msvcrt_ulong, wchar_t*, size_t, int);
_ACRTIMP wchar_t* __cdecl _wfullpath(wchar_t*,const wchar_t*,size_t);
_ACRTIMP wchar_t* __cdecl _wgetenv(const wchar_t*);
_ACRTIMP void __cdecl _wmakepath(wchar_t*,const wchar_t*,const wchar_t*,const wchar_t*,const wchar_t*);
_ACRTIMP int __cdecl _wmakepath_s(wchar_t*,size_t,const wchar_t*,const wchar_t*,const wchar_t*,const wchar_t*);
_ACRTIMP void __cdecl _wperror(const wchar_t*);
_ACRTIMP int __cdecl _wputenv(const wchar_t*);
_ACRTIMP void __cdecl _wsearchenv(const wchar_t*,const wchar_t*,wchar_t*);
_ACRTIMP void __cdecl _wsplitpath(const wchar_t*,wchar_t*,wchar_t*,wchar_t*,wchar_t*);
_ACRTIMP errno_t __cdecl _wsplitpath_s(const wchar_t*,wchar_t*,size_t,wchar_t*,size_t,
wchar_t*,size_t,wchar_t*,size_t);
int __cdecl _wsystem(const wchar_t*);
double __cdecl _wtof(const wchar_t*);
int __cdecl _wtoi(const wchar_t*);
__int64 __cdecl _wtoi64(const wchar_t*);
__msvcrt_long __cdecl _wtol(const wchar_t*);
_ACRTIMP int __cdecl _wsystem(const wchar_t*);
_ACRTIMP double __cdecl _wtof(const wchar_t*);
_ACRTIMP int __cdecl _wtoi(const wchar_t*);
_ACRTIMP __int64 __cdecl _wtoi64(const wchar_t*);
_ACRTIMP __msvcrt_long __cdecl _wtol(const wchar_t*);
size_t __cdecl mbstowcs(wchar_t*,const char*,size_t);
errno_t __cdecl mbstowcs_s(size_t*,wchar_t*,size_t,const char*,size_t);
int __cdecl mbtowc(wchar_t*,const char*,size_t);
float __cdecl wcstof(const wchar_t*,wchar_t**);
double __cdecl wcstod(const wchar_t*,wchar_t**);
__msvcrt_long __cdecl wcstol(const wchar_t*,wchar_t**,int);
size_t __cdecl wcstombs(char*,const wchar_t*,size_t);
errno_t __cdecl wcstombs_s(size_t*,char*,size_t,const wchar_t*,size_t);
__msvcrt_ulong __cdecl wcstoul(const wchar_t*,wchar_t**,int);
int __cdecl wctomb(char*,wchar_t);
__int64 __cdecl _wcstoi64(const wchar_t*,wchar_t**,int);
__int64 __cdecl _wcstoi64_l(const wchar_t*,wchar_t**,int,_locale_t);
unsigned __int64 __cdecl _wcstoui64(const wchar_t*,wchar_t**,int);
unsigned __int64 __cdecl _wcstoui64_l(const wchar_t*,wchar_t**,int,_locale_t);
_ACRTIMP size_t __cdecl mbstowcs(wchar_t*,const char*,size_t);
_ACRTIMP errno_t __cdecl mbstowcs_s(size_t*,wchar_t*,size_t,const char*,size_t);
_ACRTIMP int __cdecl mbtowc(wchar_t*,const char*,size_t);
_ACRTIMP float __cdecl wcstof(const wchar_t*,wchar_t**);
_ACRTIMP double __cdecl wcstod(const wchar_t*,wchar_t**);
_ACRTIMP __msvcrt_long __cdecl wcstol(const wchar_t*,wchar_t**,int);
_ACRTIMP size_t __cdecl wcstombs(char*,const wchar_t*,size_t);
_ACRTIMP errno_t __cdecl wcstombs_s(size_t*,char*,size_t,const wchar_t*,size_t);
_ACRTIMP __msvcrt_ulong __cdecl wcstoul(const wchar_t*,wchar_t**,int);
_ACRTIMP int __cdecl wctomb(char*,wchar_t);
_ACRTIMP __int64 __cdecl _wcstoi64(const wchar_t*,wchar_t**,int);
_ACRTIMP __int64 __cdecl _wcstoi64_l(const wchar_t*,wchar_t**,int,_locale_t);
_ACRTIMP unsigned __int64 __cdecl _wcstoui64(const wchar_t*,wchar_t**,int);
_ACRTIMP unsigned __int64 __cdecl _wcstoui64_l(const wchar_t*,wchar_t**,int,_locale_t);
#ifdef __cplusplus
}
......
......@@ -28,14 +28,14 @@ struct tm {
extern "C" {
#endif
wchar_t* __cdecl _wasctime(const struct tm*);
size_t __cdecl wcsftime(wchar_t*,size_t,const wchar_t*,const struct tm*);
wchar_t* __cdecl _wctime32(const __time32_t*);
wchar_t* __cdecl _wctime64(const __time64_t*);
wchar_t* __cdecl _wstrdate(wchar_t*);
errno_t __cdecl _wstrdate_s(wchar_t*,size_t);
wchar_t* __cdecl _wstrtime(wchar_t*);
errno_t __cdecl _wstrtime_s(wchar_t*,size_t);
_ACRTIMP wchar_t* __cdecl _wasctime(const struct tm*);
_ACRTIMP size_t __cdecl wcsftime(wchar_t*,size_t,const wchar_t*,const struct tm*);
_ACRTIMP wchar_t* __cdecl _wctime32(const __time32_t*);
_ACRTIMP wchar_t* __cdecl _wctime64(const __time64_t*);
_ACRTIMP wchar_t* __cdecl _wstrdate(wchar_t*);
_ACRTIMP errno_t __cdecl _wstrdate_s(wchar_t*,size_t);
_ACRTIMP wchar_t* __cdecl _wstrtime(wchar_t*);
_ACRTIMP errno_t __cdecl _wstrtime_s(wchar_t*,size_t);
#ifndef _USE_32BIT_TIME_T
static inline wchar_t* _wctime(const time_t *t) { return _wctime64(t); }
......
......@@ -86,14 +86,14 @@ extern int _crtAssertBusy;
extern int _crtBreakAlloc;
extern int _crtDbgFlag;
int __cdecl _CrtCheckMemory(void);
int WINAPIV _CrtDbgReport(int reportType, const char *filename, int linenumber,
_ACRTIMP int __cdecl _CrtCheckMemory(void);
_ACRTIMP int WINAPIV _CrtDbgReport(int reportType, const char *filename, int linenumber,
const char *moduleName, const char *format, ...);
int __cdecl _CrtDumpMemoryLeaks(void);
int __cdecl _CrtSetBreakAlloc(int);
int __cdecl _CrtSetDbgFlag(int);
void *__cdecl _CrtSetDumpClient(void *dumpClient);
int __cdecl _CrtSetReportMode(int reportType, int reportMode);
_ACRTIMP int __cdecl _CrtDumpMemoryLeaks(void);
_ACRTIMP int __cdecl _CrtSetBreakAlloc(int);
_ACRTIMP int __cdecl _CrtSetDbgFlag(int);
_ACRTIMP void *__cdecl _CrtSetDumpClient(void *dumpClient);
_ACRTIMP int __cdecl _CrtSetReportMode(int reportType, int reportMode);
#ifdef __cplusplus
}
......
......@@ -18,30 +18,30 @@ extern "C" {
#define WEOF (wint_t)(0xFFFF)
#endif
int __cdecl __isascii(int);
int __cdecl __iscsym(int);
int __cdecl __iscsymf(int);
int __cdecl __toascii(int);
int __cdecl _isblank_l(int,_locale_t);
int __cdecl _isctype(int,int);
int __cdecl _tolower(int);
int __cdecl _tolower_l(int,_locale_t);
int __cdecl _toupper(int);
int __cdecl _toupper_l(int,_locale_t);
int __cdecl isalnum(int);
int __cdecl isalpha(int);
int __cdecl isblank(int);
int __cdecl iscntrl(int);
int __cdecl isdigit(int);
int __cdecl isgraph(int);
int __cdecl islower(int);
int __cdecl isprint(int);
int __cdecl ispunct(int);
int __cdecl isspace(int);
int __cdecl isupper(int);
int __cdecl isxdigit(int);
int __cdecl tolower(int);
int __cdecl toupper(int);
_ACRTIMP int __cdecl __isascii(int);
_ACRTIMP int __cdecl __iscsym(int);
_ACRTIMP int __cdecl __iscsymf(int);
_ACRTIMP int __cdecl __toascii(int);
_ACRTIMP int __cdecl _isblank_l(int,_locale_t);
_ACRTIMP int __cdecl _isctype(int,int);
_ACRTIMP int __cdecl _tolower(int);
_ACRTIMP int __cdecl _tolower_l(int,_locale_t);
_ACRTIMP int __cdecl _toupper(int);
_ACRTIMP int __cdecl _toupper_l(int,_locale_t);
_ACRTIMP int __cdecl isalnum(int);
_ACRTIMP int __cdecl isalpha(int);
_ACRTIMP int __cdecl isblank(int);
_ACRTIMP int __cdecl iscntrl(int);
_ACRTIMP int __cdecl isdigit(int);
_ACRTIMP int __cdecl isgraph(int);
_ACRTIMP int __cdecl islower(int);
_ACRTIMP int __cdecl isprint(int);
_ACRTIMP int __cdecl ispunct(int);
_ACRTIMP int __cdecl isspace(int);
_ACRTIMP int __cdecl isupper(int);
_ACRTIMP int __cdecl isxdigit(int);
_ACRTIMP int __cdecl tolower(int);
_ACRTIMP int __cdecl toupper(int);
#ifdef __cplusplus
}
......
......@@ -26,14 +26,14 @@ struct _diskfree_t {
};
#endif /* _DISKFREE_T_DEFINED */
int __cdecl _chdir(const char*);
int __cdecl _chdrive(int);
char* __cdecl _getcwd(char*,int);
char* __cdecl _getdcwd(int,char*,int);
int __cdecl _getdrive(void);
__msvcrt_ulong __cdecl _getdrives(void);
int __cdecl _mkdir(const char*);
int __cdecl _rmdir(const char*);
_ACRTIMP int __cdecl _chdir(const char*);
_ACRTIMP int __cdecl _chdrive(int);
_ACRTIMP char* __cdecl _getcwd(char*,int);
_ACRTIMP char* __cdecl _getdcwd(int,char*,int);
_ACRTIMP int __cdecl _getdrive(void);
_ACRTIMP __msvcrt_ulong __cdecl _getdrives(void);
_ACRTIMP int __cdecl _mkdir(const char*);
_ACRTIMP int __cdecl _rmdir(const char*);
#ifdef __cplusplus
}
......
......@@ -36,7 +36,7 @@ struct _diskfree_t {
extern "C" {
#endif
unsigned int __cdecl _getdiskfree(unsigned int, struct _diskfree_t *);
_ACRTIMP unsigned int __cdecl _getdiskfree(unsigned int, struct _diskfree_t *);
#ifdef __cplusplus
}
......
......@@ -36,9 +36,9 @@ typedef void (__cdecl *unexpected_handler)(void);
typedef void (__cdecl *unexpected_function)(void);
typedef void (__cdecl *_se_translator_function)(unsigned int code, struct _EXCEPTION_POINTERS *info);
terminate_function __cdecl set_terminate(terminate_function func);
unexpected_function __cdecl set_unexpected(unexpected_function func);
_se_translator_function __cdecl set_se_translator(_se_translator_function func);
_ACRTIMP terminate_function __cdecl set_terminate(terminate_function func);
_ACRTIMP unexpected_function __cdecl set_unexpected(unexpected_function func);
_ACRTIMP _se_translator_function __cdecl set_se_translator(_se_translator_function func);
_ACRTIMP DECLSPEC_NORETURN void __cdecl terminate(void);
_ACRTIMP DECLSPEC_NORETURN void __cdecl unexpected(void);
......
......@@ -111,7 +111,7 @@
extern "C" {
#endif
extern int* __cdecl _errno(void);
_ACRTIMP int* __cdecl _errno(void);
#ifdef __cplusplus
}
......
......@@ -134,27 +134,27 @@ extern "C" {
#define _CW_DEFAULT (_RC_NEAR + _PC_64 + _EM_INVALID + _EM_ZERODIVIDE + _EM_OVERFLOW + _EM_UNDERFLOW + _EM_INEXACT + _EM_DENORMAL)
#endif
unsigned int __cdecl _clearfp(void);
unsigned int __cdecl _statusfp(void);
_ACRTIMP unsigned int __cdecl _clearfp(void);
_ACRTIMP unsigned int __cdecl _statusfp(void);
_ACRTIMP int __cdecl __fpe_flt_rounds(void);
unsigned int __cdecl _control87(unsigned int, unsigned int);
unsigned int __cdecl _controlfp(unsigned int, unsigned int);
errno_t __cdecl _controlfp_s(unsigned int *, unsigned int, unsigned int);
_ACRTIMP unsigned int __cdecl _control87(unsigned int, unsigned int);
_ACRTIMP unsigned int __cdecl _controlfp(unsigned int, unsigned int);
_ACRTIMP errno_t __cdecl _controlfp_s(unsigned int *, unsigned int, unsigned int);
#ifdef __i386__
int __cdecl __control87_2(unsigned int, unsigned int, unsigned int *, unsigned int *);
_ACRTIMP int __cdecl __control87_2(unsigned int, unsigned int, unsigned int *, unsigned int *);
#endif
double __cdecl _copysign (double, double);
double __cdecl _chgsign (double);
double __cdecl _scalb(double, __msvcrt_long);
double __cdecl _logb(double);
double __cdecl _nextafter(double, double);
int __cdecl _finite(double);
int __cdecl _isnan(double);
int __cdecl _fpclass(double);
_ACRTIMP double __cdecl _copysign (double, double);
_ACRTIMP double __cdecl _chgsign (double);
_ACRTIMP double __cdecl _scalb(double, __msvcrt_long);
_ACRTIMP double __cdecl _logb(double);
_ACRTIMP double __cdecl _nextafter(double, double);
_ACRTIMP int __cdecl _finite(double);
_ACRTIMP int __cdecl _isnan(double);
_ACRTIMP int __cdecl _fpclass(double);
#ifdef __x86_64__
float __cdecl _scalbf(float, __msvcrt_long);
_ACRTIMP float __cdecl _scalbf(float, __msvcrt_long);
#endif
#ifdef __cplusplus
......
......@@ -230,7 +230,7 @@ typedef struct {
struct _EXCEPTION_POINTERS;
int __cdecl _fpieee_flt(__msvcrt_ulong _ExceptionCode,struct _EXCEPTION_POINTERS *_PtExceptionPtr,int (__cdecl *_Handler)(_FPIEEE_RECORD *));
_ACRTIMP int __cdecl _fpieee_flt(__msvcrt_ulong _ExceptionCode,struct _EXCEPTION_POINTERS *_PtExceptionPtr,int (__cdecl *_Handler)(_FPIEEE_RECORD *));
#ifdef __cplusplus
}
......
......@@ -59,48 +59,48 @@ struct _finddata64_t
extern "C" {
#endif
int __cdecl _access(const char*,int);
int __cdecl _chmod(const char*,int);
int __cdecl _chsize(int,__msvcrt_ulong);
int __cdecl _chsize_s(int,__int64);
int __cdecl _close(int);
int __cdecl _commit(int);
int __cdecl _creat(const char*,int);
int __cdecl _dup(int);
int __cdecl _dup2(int,int);
int __cdecl _eof(int);
__int64 __cdecl _filelengthi64(int);
__msvcrt_long __cdecl _filelength(int);
int __cdecl _findclose(intptr_t);
intptr_t __cdecl _findfirst(const char*,struct _finddata_t*);
intptr_t __cdecl _findfirsti64(const char*, struct _finddatai64_t*);
intptr_t __cdecl _findfirst64(const char*, struct _finddata64_t*);
int __cdecl _findnext(intptr_t,struct _finddata_t*);
int __cdecl _findnexti64(intptr_t, struct _finddatai64_t*);
int __cdecl _findnext64(intptr_t, struct _finddata64_t*);
intptr_t __cdecl _get_osfhandle(int);
int __cdecl _isatty(int);
int __cdecl _locking(int,int,__msvcrt_long);
__msvcrt_long __cdecl _lseek(int,__msvcrt_long,int);
__int64 __cdecl _lseeki64(int,__int64,int);
char* __cdecl _mktemp(char*);
int __cdecl _mktemp_s(char*,size_t);
int WINAPIV _open(const char*,int,...);
int __cdecl _open_osfhandle(intptr_t,int);
int __cdecl _pipe(int*,unsigned int,int);
int __cdecl _read(int,void*,unsigned int);
int __cdecl _setmode(int,int);
int WINAPIV _sopen(const char*,int,int,...);
errno_t __cdecl _sopen_dispatch(const char*,int,int,int,int*,int);
errno_t __cdecl _sopen_s(int*,const char*,int,int,int);
__msvcrt_long __cdecl _tell(int);
__int64 __cdecl _telli64(int);
int __cdecl _umask(int);
int __cdecl _unlink(const char*);
int __cdecl _write(int,const void*,unsigned int);
_ACRTIMP int __cdecl _access(const char*,int);
_ACRTIMP int __cdecl _chmod(const char*,int);
_ACRTIMP int __cdecl _chsize(int,__msvcrt_ulong);
_ACRTIMP int __cdecl _chsize_s(int,__int64);
_ACRTIMP int __cdecl _close(int);
_ACRTIMP int __cdecl _commit(int);
_ACRTIMP int __cdecl _creat(const char*,int);
_ACRTIMP int __cdecl _dup(int);
_ACRTIMP int __cdecl _dup2(int,int);
_ACRTIMP int __cdecl _eof(int);
_ACRTIMP __int64 __cdecl _filelengthi64(int);
_ACRTIMP __msvcrt_long __cdecl _filelength(int);
_ACRTIMP int __cdecl _findclose(intptr_t);
_ACRTIMP intptr_t __cdecl _findfirst(const char*,struct _finddata_t*);
_ACRTIMP intptr_t __cdecl _findfirsti64(const char*, struct _finddatai64_t*);
_ACRTIMP intptr_t __cdecl _findfirst64(const char*, struct _finddata64_t*);
_ACRTIMP int __cdecl _findnext(intptr_t,struct _finddata_t*);
_ACRTIMP int __cdecl _findnexti64(intptr_t, struct _finddatai64_t*);
_ACRTIMP int __cdecl _findnext64(intptr_t, struct _finddata64_t*);
_ACRTIMP intptr_t __cdecl _get_osfhandle(int);
_ACRTIMP int __cdecl _isatty(int);
_ACRTIMP int __cdecl _locking(int,int,__msvcrt_long);
_ACRTIMP __msvcrt_long __cdecl _lseek(int,__msvcrt_long,int);
_ACRTIMP __int64 __cdecl _lseeki64(int,__int64,int);
_ACRTIMP char* __cdecl _mktemp(char*);
_ACRTIMP int __cdecl _mktemp_s(char*,size_t);
_ACRTIMP int WINAPIV _open(const char*,int,...);
_ACRTIMP int __cdecl _open_osfhandle(intptr_t,int);
_ACRTIMP int __cdecl _pipe(int*,unsigned int,int);
_ACRTIMP int __cdecl _read(int,void*,unsigned int);
_ACRTIMP int __cdecl _setmode(int,int);
_ACRTIMP int WINAPIV _sopen(const char*,int,int,...);
_ACRTIMP errno_t __cdecl _sopen_dispatch(const char*,int,int,int,int*,int);
_ACRTIMP errno_t __cdecl _sopen_s(int*,const char*,int,int,int);
_ACRTIMP __msvcrt_long __cdecl _tell(int);
_ACRTIMP __int64 __cdecl _telli64(int);
_ACRTIMP int __cdecl _umask(int);
_ACRTIMP int __cdecl _unlink(const char*);
_ACRTIMP int __cdecl _write(int,const void*,unsigned int);
int __cdecl remove(const char*);
int __cdecl rename(const char*,const char*);
_ACRTIMP int __cdecl remove(const char*);
_ACRTIMP int __cdecl rename(const char*,const char*);
#ifdef __cplusplus
}
......@@ -134,8 +134,8 @@ static inline int unlink(const char* path) { return _unlink(path); }
static inline int write(int fd, const void* buf, unsigned int size) { return _write(fd, buf, size); }
#if defined(__GNUC__) && (__GNUC__ < 4)
extern int WINAPIV open(const char*,int,...) __attribute__((alias("_open")));
extern int WINAPIV sopen(const char*,int,int,...) __attribute__((alias("_sopen")));
_ACRTIMP int WINAPIV open(const char*,int,...) __attribute__((alias("_open")));
_ACRTIMP int WINAPIV sopen(const char*,int,int,...) __attribute__((alias("_sopen")));
#else
#define open _open
#define sopen _sopen
......
......@@ -62,17 +62,17 @@ struct tm;
extern "C" {
#endif
char* __cdecl setlocale(int,const char*);
struct lconv* __cdecl localeconv(void);
size_t __cdecl _Strftime(char*,size_t,const char*,const struct tm*,void*);
int __cdecl _configthreadlocale(int);
_locale_t __cdecl _get_current_locale(void);
_locale_t __cdecl _create_locale(int, const char*);
void __cdecl _free_locale(_locale_t);
_ACRTIMP char* __cdecl setlocale(int,const char*);
_ACRTIMP struct lconv* __cdecl localeconv(void);
_ACRTIMP size_t __cdecl _Strftime(char*,size_t,const char*,const struct tm*,void*);
_ACRTIMP int __cdecl _configthreadlocale(int);
_ACRTIMP _locale_t __cdecl _get_current_locale(void);
_ACRTIMP _locale_t __cdecl _create_locale(int, const char*);
_ACRTIMP void __cdecl _free_locale(_locale_t);
#ifndef _WLOCALE_DEFINED
#define _WLOCALE_DEFINED
wchar_t* __cdecl _wsetlocale(int,const wchar_t*);
_ACRTIMP wchar_t* __cdecl _wsetlocale(int,const wchar_t*);
#endif /* _WLOCALE_DEFINED */
#ifdef __cplusplus
......
......@@ -44,7 +44,7 @@ typedef struct _heapinfo
#endif /* _HEAPINFO_DEFINED */
#ifdef __i386__
extern unsigned int* __cdecl __p__amblksiz(void);
_ACRTIMP unsigned int* __cdecl __p__amblksiz(void);
#define _amblksiz (*__p__amblksiz());
#else
extern unsigned int _amblksiz;
......@@ -54,28 +54,28 @@ extern unsigned int _amblksiz;
extern "C" {
#endif
void* __cdecl _expand(void*,size_t);
int __cdecl _heapadd(void*,size_t);
int __cdecl _heapchk(void);
int __cdecl _heapmin(void);
int __cdecl _heapset(unsigned int);
size_t __cdecl _heapused(size_t*,size_t*);
int __cdecl _heapwalk(_HEAPINFO*);
size_t __cdecl _msize(void*);
_ACRTIMP void* __cdecl _expand(void*,size_t);
_ACRTIMP int __cdecl _heapadd(void*,size_t);
_ACRTIMP int __cdecl _heapchk(void);
_ACRTIMP int __cdecl _heapmin(void);
_ACRTIMP int __cdecl _heapset(unsigned int);
_ACRTIMP size_t __cdecl _heapused(size_t*,size_t*);
_ACRTIMP int __cdecl _heapwalk(_HEAPINFO*);
_ACRTIMP size_t __cdecl _msize(void*);
void* __cdecl calloc(size_t,size_t);
void __cdecl free(void*);
void* __cdecl malloc(size_t);
void* __cdecl realloc(void*,size_t);
_ACRTIMP void* __cdecl calloc(size_t,size_t);
_ACRTIMP void __cdecl free(void*);
_ACRTIMP void* __cdecl malloc(size_t);
_ACRTIMP void* __cdecl realloc(void*,size_t);
void __cdecl _aligned_free(void*);
void* __cdecl _aligned_malloc(size_t,size_t);
void* __cdecl _aligned_offset_malloc(size_t,size_t,size_t);
void* __cdecl _aligned_realloc(void*,size_t,size_t);
void* __cdecl _aligned_offset_realloc(void*,size_t,size_t,size_t);
_ACRTIMP void __cdecl _aligned_free(void*);
_ACRTIMP void* __cdecl _aligned_malloc(size_t,size_t);
_ACRTIMP void* __cdecl _aligned_offset_malloc(size_t,size_t,size_t);
_ACRTIMP void* __cdecl _aligned_realloc(void*,size_t,size_t);
_ACRTIMP void* __cdecl _aligned_offset_realloc(void*,size_t,size_t,size_t);
size_t __cdecl _get_sbh_threshold(void);
int __cdecl _set_sbh_threshold(size_t size);
_ACRTIMP size_t __cdecl _get_sbh_threshold(void);
_ACRTIMP int __cdecl _set_sbh_threshold(size_t size);
#ifdef __cplusplus
}
......
......@@ -45,107 +45,107 @@ struct _complex
};
#endif /* _COMPLEX_DEFINED */
double __cdecl sin(double);
double __cdecl cos(double);
double __cdecl tan(double);
double __cdecl sinh(double);
double __cdecl cosh(double);
double __cdecl tanh(double);
double __cdecl asin(double);
double __cdecl acos(double);
double __cdecl atan(double);
double __cdecl atan2(double, double);
double __cdecl asinh(double);
double __cdecl acosh(double);
double __cdecl atanh(double);
double __cdecl exp(double);
double __cdecl log(double);
double __cdecl log10(double);
double __cdecl pow(double, double);
double __cdecl sqrt(double);
double __cdecl ceil(double);
double __cdecl floor(double);
double __cdecl fabs(double);
double __cdecl ldexp(double, int);
double __cdecl frexp(double, int*);
double __cdecl modf(double, double*);
double __cdecl fmod(double, double);
double __cdecl fmin(double, double);
double __cdecl fmax(double, double);
double __cdecl erf(double);
double __cdecl _hypot(double, double);
double __cdecl _j0(double);
double __cdecl _j1(double);
double __cdecl _jn(int, double);
double __cdecl _y0(double);
double __cdecl _y1(double);
double __cdecl _yn(int, double);
double __cdecl cbrt(double);
double __cdecl exp2(double);
double __cdecl log2(double);
double __cdecl rint(double);
double __cdecl round(double);
double __cdecl trunc(double);
float __cdecl cbrtf(float);
float __cdecl exp2f(float);
float __cdecl log2f(float);
float __cdecl rintf(float);
float __cdecl roundf(float);
float __cdecl truncf(float);
long __cdecl lrint(double);
long __cdecl lrintf(float);
long __cdecl lround(double);
long __cdecl lroundf(float);
_ACRTIMP double __cdecl sin(double);
_ACRTIMP double __cdecl cos(double);
_ACRTIMP double __cdecl tan(double);
_ACRTIMP double __cdecl sinh(double);
_ACRTIMP double __cdecl cosh(double);
_ACRTIMP double __cdecl tanh(double);
_ACRTIMP double __cdecl asin(double);
_ACRTIMP double __cdecl acos(double);
_ACRTIMP double __cdecl atan(double);
_ACRTIMP double __cdecl atan2(double, double);
_ACRTIMP double __cdecl asinh(double);
_ACRTIMP double __cdecl acosh(double);
_ACRTIMP double __cdecl atanh(double);
_ACRTIMP double __cdecl exp(double);
_ACRTIMP double __cdecl log(double);
_ACRTIMP double __cdecl log10(double);
_ACRTIMP double __cdecl pow(double, double);
_ACRTIMP double __cdecl sqrt(double);
_ACRTIMP double __cdecl ceil(double);
_ACRTIMP double __cdecl floor(double);
_ACRTIMP double __cdecl fabs(double);
_ACRTIMP double __cdecl ldexp(double, int);
_ACRTIMP double __cdecl frexp(double, int*);
_ACRTIMP double __cdecl modf(double, double*);
_ACRTIMP double __cdecl fmod(double, double);
_ACRTIMP double __cdecl fmin(double, double);
_ACRTIMP double __cdecl fmax(double, double);
_ACRTIMP double __cdecl erf(double);
_ACRTIMP double __cdecl _hypot(double, double);
_ACRTIMP double __cdecl _j0(double);
_ACRTIMP double __cdecl _j1(double);
_ACRTIMP double __cdecl _jn(int, double);
_ACRTIMP double __cdecl _y0(double);
_ACRTIMP double __cdecl _y1(double);
_ACRTIMP double __cdecl _yn(int, double);
_ACRTIMP double __cdecl cbrt(double);
_ACRTIMP double __cdecl exp2(double);
_ACRTIMP double __cdecl log2(double);
_ACRTIMP double __cdecl rint(double);
_ACRTIMP double __cdecl round(double);
_ACRTIMP double __cdecl trunc(double);
_ACRTIMP float __cdecl cbrtf(float);
_ACRTIMP float __cdecl exp2f(float);
_ACRTIMP float __cdecl log2f(float);
_ACRTIMP float __cdecl rintf(float);
_ACRTIMP float __cdecl roundf(float);
_ACRTIMP float __cdecl truncf(float);
_ACRTIMP __msvcrt_long __cdecl lrint(double);
_ACRTIMP __msvcrt_long __cdecl lrintf(float);
_ACRTIMP __msvcrt_long __cdecl lround(double);
_ACRTIMP __msvcrt_long __cdecl lroundf(float);
_ACRTIMP double __cdecl scalbn(double,int);
_ACRTIMP float __cdecl scalbnf(float,int);
double __cdecl _copysign (double, double);
double __cdecl _chgsign (double);
double __cdecl _scalb(double, __msvcrt_long);
double __cdecl _logb(double);
double __cdecl _nextafter(double, double);
int __cdecl _finite(double);
int __cdecl _isnan(double);
int __cdecl _fpclass(double);
_ACRTIMP double __cdecl _copysign (double, double);
_ACRTIMP double __cdecl _chgsign (double);
_ACRTIMP double __cdecl _scalb(double, __msvcrt_long);
_ACRTIMP double __cdecl _logb(double);
_ACRTIMP double __cdecl _nextafter(double, double);
_ACRTIMP int __cdecl _finite(double);
_ACRTIMP int __cdecl _isnan(double);
_ACRTIMP int __cdecl _fpclass(double);
#ifndef __i386__
float __cdecl sinf(float);
float __cdecl cosf(float);
float __cdecl tanf(float);
float __cdecl sinhf(float);
float __cdecl coshf(float);
float __cdecl tanhf(float);
float __cdecl asinf(float);
float __cdecl acosf(float);
float __cdecl atanf(float);
float __cdecl atan2f(float, float);
float __cdecl asinhf(float);
float __cdecl acoshf(float);
float __cdecl atanhf(float);
float __cdecl expf(float);
float __cdecl logf(float);
float __cdecl log10f(float);
float __cdecl powf(float, float);
float __cdecl sqrtf(float);
float __cdecl ceilf(float);
float __cdecl floorf(float);
float __cdecl fabsf(float);
float __cdecl frexpf(float, int*);
float __cdecl modff(float, float*);
float __cdecl fmodf(float, float);
float __cdecl _copysignf(float, float);
float __cdecl _chgsignf(float);
float __cdecl _logbf(float);
int __cdecl _finitef(float);
int __cdecl _isnanf(float);
int __cdecl _fpclassf(float);
_ACRTIMP float __cdecl sinf(float);
_ACRTIMP float __cdecl cosf(float);
_ACRTIMP float __cdecl tanf(float);
_ACRTIMP float __cdecl sinhf(float);
_ACRTIMP float __cdecl coshf(float);
_ACRTIMP float __cdecl tanhf(float);
_ACRTIMP float __cdecl asinf(float);
_ACRTIMP float __cdecl acosf(float);
_ACRTIMP float __cdecl atanf(float);
_ACRTIMP float __cdecl atan2f(float, float);
_ACRTIMP float __cdecl asinhf(float);
_ACRTIMP float __cdecl acoshf(float);
_ACRTIMP float __cdecl atanhf(float);
_ACRTIMP float __cdecl expf(float);
_ACRTIMP float __cdecl logf(float);
_ACRTIMP float __cdecl log10f(float);
_ACRTIMP float __cdecl powf(float, float);
_ACRTIMP float __cdecl sqrtf(float);
_ACRTIMP float __cdecl ceilf(float);
_ACRTIMP float __cdecl floorf(float);
_ACRTIMP float __cdecl fabsf(float);
_ACRTIMP float __cdecl frexpf(float, int*);
_ACRTIMP float __cdecl modff(float, float*);
_ACRTIMP float __cdecl fmodf(float, float);
_ACRTIMP float __cdecl _copysignf(float, float);
_ACRTIMP float __cdecl _chgsignf(float);
_ACRTIMP float __cdecl _logbf(float);
_ACRTIMP int __cdecl _finitef(float);
_ACRTIMP int __cdecl _isnanf(float);
_ACRTIMP int __cdecl _fpclassf(float);
#else
......@@ -193,13 +193,11 @@ _ACRTIMP float __cdecl copysignf(float, float);
#define copysignf(x,y) _copysignf(x,y)
#endif
double __cdecl nearbyint(double);
float __cdecl nearbyintf(float);
float __cdecl _hypotf(float, float);
int __cdecl _matherr(struct _exception*);
double __cdecl _cabs(struct _complex);
_ACRTIMP double __cdecl nearbyint(double);
_ACRTIMP float __cdecl nearbyintf(float);
_ACRTIMP float __cdecl _hypotf(float, float);
_ACRTIMP int __cdecl _matherr(struct _exception*);
_ACRTIMP double __cdecl _cabs(struct _complex);
#if (defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))) || defined(__clang__)
# define INFINITY __builtin_inff()
......@@ -221,10 +219,10 @@ static const union {
#define FP_SUBNORMAL -2
#define FP_ZERO 0
short __cdecl _dclass(double);
short __cdecl _fdclass(float);
int __cdecl _dsign(double);
int __cdecl _fdsign(float);
_ACRTIMP short __cdecl _dclass(double);
_ACRTIMP short __cdecl _fdclass(float);
_ACRTIMP int __cdecl _dsign(double);
_ACRTIMP int __cdecl _fdsign(float);
static inline int __isnanf(float x)
{
......
......@@ -27,7 +27,7 @@ extern "C" {
#endif
#ifdef __i386__
unsigned char* __cdecl __p__mbctype(void);
_ACRTIMP unsigned char* __cdecl __p__mbctype(void);
#define _mbctype (__p__mbctype())
#else
extern unsigned char MSVCRT_mbctype[];
......@@ -53,24 +53,24 @@ extern unsigned char MSVCRT_mbctype[];
#define _MB_CP_ANSI -3
#define _MB_CP_LOCALE -4
int __cdecl _getmbcp(void);
int __cdecl _ismbbalnum(unsigned int);
int __cdecl _ismbbalpha(unsigned int);
int __cdecl _ismbbgraph(unsigned int);
int __cdecl _ismbbkalnum(unsigned int);
int __cdecl _ismbbkana(unsigned int);
int __cdecl _ismbbkprint(unsigned int);
int __cdecl _ismbbkpunct(unsigned int);
int __cdecl _ismbbprint(unsigned int);
int __cdecl _ismbbpunct(unsigned int);
int __cdecl _setmbcp(int);
_ACRTIMP int __cdecl _getmbcp(void);
_ACRTIMP int __cdecl _ismbbalnum(unsigned int);
_ACRTIMP int __cdecl _ismbbalpha(unsigned int);
_ACRTIMP int __cdecl _ismbbgraph(unsigned int);
_ACRTIMP int __cdecl _ismbbkalnum(unsigned int);
_ACRTIMP int __cdecl _ismbbkana(unsigned int);
_ACRTIMP int __cdecl _ismbbkprint(unsigned int);
_ACRTIMP int __cdecl _ismbbkpunct(unsigned int);
_ACRTIMP int __cdecl _ismbbprint(unsigned int);
_ACRTIMP int __cdecl _ismbbpunct(unsigned int);
_ACRTIMP int __cdecl _setmbcp(int);
#ifndef _MBLEADTRAIL_DEFINED
#define _MBLEADTRAIL_DEFINED
int __cdecl _ismbblead(unsigned int);
int __cdecl _ismbbtrail(unsigned int);
int __cdecl _ismbslead(const unsigned char*,const unsigned char*);
int __cdecl _ismbstrail(const unsigned char*,const unsigned char*);
_ACRTIMP int __cdecl _ismbblead(unsigned int);
_ACRTIMP int __cdecl _ismbbtrail(unsigned int);
_ACRTIMP int __cdecl _ismbslead(const unsigned char*,const unsigned char*);
_ACRTIMP int __cdecl _ismbstrail(const unsigned char*,const unsigned char*);
#endif /* _MBLEADTRAIL_DEFINED */
#ifdef __cplusplus
......
......@@ -17,14 +17,14 @@ extern "C" {
#ifndef _CRT_MEMORY_DEFINED
#define _CRT_MEMORY_DEFINED
void* __cdecl memchr(const void*,int,size_t);
int __cdecl memcmp(const void*,const void*,size_t);
void* __cdecl memcpy(void*,const void*,size_t);
errno_t __cdecl memcpy_s(void*,size_t,const void*,size_t);
void* __cdecl memset(void*,int,size_t);
void* __cdecl _memccpy(void*,const void*,int,size_t);
int __cdecl _memicmp(const void*,const void*,size_t);
int __cdecl _memicmp_l(const void*,const void*,size_t,_locale_t);
_ACRTIMP void* __cdecl memchr(const void*,int,size_t);
_ACRTIMP int __cdecl memcmp(const void*,const void*,size_t);
_ACRTIMP void* __cdecl memcpy(void*,const void*,size_t);
_ACRTIMP errno_t __cdecl memcpy_s(void*,size_t,const void*,size_t);
_ACRTIMP void* __cdecl memset(void*,int,size_t);
_ACRTIMP void* __cdecl _memccpy(void*,const void*,int,size_t);
_ACRTIMP int __cdecl _memicmp(const void*,const void*,size_t);
_ACRTIMP int __cdecl _memicmp_l(const void*,const void*,size_t,_locale_t);
static inline int memicmp(const void* s1, const void* s2, size_t len) { return _memicmp(s1, s2, len); }
static inline void* memccpy(void *s1, const void *s2, int c, size_t n) { return _memccpy(s1, s2, c, n); }
......
......@@ -28,36 +28,36 @@ extern "C" {
typedef void (__cdecl *_beginthread_start_routine_t)(void *);
typedef unsigned int (__stdcall *_beginthreadex_start_routine_t)(void *);
uintptr_t __cdecl _beginthread(_beginthread_start_routine_t,unsigned int,void*);
uintptr_t __cdecl _beginthreadex(void*,unsigned int,_beginthreadex_start_routine_t,void*,unsigned int,unsigned int*);
intptr_t __cdecl _cwait(int*,intptr_t,int);
_ACRTIMP uintptr_t __cdecl _beginthread(_beginthread_start_routine_t,unsigned int,void*);
_ACRTIMP uintptr_t __cdecl _beginthreadex(void*,unsigned int,_beginthreadex_start_routine_t,void*,unsigned int,unsigned int*);
_ACRTIMP intptr_t __cdecl _cwait(int*,intptr_t,int);
_ACRTIMP DECLSPEC_NORETURN void __cdecl _endthread(void);
_ACRTIMP DECLSPEC_NORETURN void __cdecl _endthreadex(unsigned int);
intptr_t WINAPIV _execl(const char*,const char*,...);
intptr_t WINAPIV _execle(const char*,const char*,...);
intptr_t WINAPIV _execlp(const char*,const char*,...);
intptr_t WINAPIV _execlpe(const char*,const char*,...);
intptr_t __cdecl _execv(const char*,const char* const *);
intptr_t __cdecl _execve(const char*,const char* const *,const char* const *);
intptr_t __cdecl _execvp(const char*,const char* const *);
intptr_t __cdecl _execvpe(const char*,const char* const *,const char* const *);
int __cdecl _getpid(void);
intptr_t WINAPIV _spawnl(int,const char*,const char*,...);
intptr_t WINAPIV _spawnle(int,const char*,const char*,...);
intptr_t WINAPIV _spawnlp(int,const char*,const char*,...);
intptr_t WINAPIV _spawnlpe(int,const char*,const char*,...);
intptr_t __cdecl _spawnv(int,const char*,const char* const *);
intptr_t __cdecl _spawnve(int,const char*,const char* const *,const char* const *);
intptr_t __cdecl _spawnvp(int,const char*,const char* const *);
intptr_t __cdecl _spawnvpe(int,const char*,const char* const *,const char* const *);
_ACRTIMP intptr_t WINAPIV _execl(const char*,const char*,...);
_ACRTIMP intptr_t WINAPIV _execle(const char*,const char*,...);
_ACRTIMP intptr_t WINAPIV _execlp(const char*,const char*,...);
_ACRTIMP intptr_t WINAPIV _execlpe(const char*,const char*,...);
_ACRTIMP intptr_t __cdecl _execv(const char*,const char* const *);
_ACRTIMP intptr_t __cdecl _execve(const char*,const char* const *,const char* const *);
_ACRTIMP intptr_t __cdecl _execvp(const char*,const char* const *);
_ACRTIMP intptr_t __cdecl _execvpe(const char*,const char* const *,const char* const *);
_ACRTIMP int __cdecl _getpid(void);
_ACRTIMP intptr_t WINAPIV _spawnl(int,const char*,const char*,...);
_ACRTIMP intptr_t WINAPIV _spawnle(int,const char*,const char*,...);
_ACRTIMP intptr_t WINAPIV _spawnlp(int,const char*,const char*,...);
_ACRTIMP intptr_t WINAPIV _spawnlpe(int,const char*,const char*,...);
_ACRTIMP intptr_t __cdecl _spawnv(int,const char*,const char* const *);
_ACRTIMP intptr_t __cdecl _spawnve(int,const char*,const char* const *,const char* const *);
_ACRTIMP intptr_t __cdecl _spawnvp(int,const char*,const char* const *);
_ACRTIMP intptr_t __cdecl _spawnvpe(int,const char*,const char* const *,const char* const *);
void __cdecl _c_exit(void);
void __cdecl _cexit(void);
_ACRTIMP void __cdecl _c_exit(void);
_ACRTIMP void __cdecl _cexit(void);
_ACRTIMP DECLSPEC_NORETURN void __cdecl _exit(int);
_ACRTIMP DECLSPEC_NORETURN void __cdecl abort(void);
_ACRTIMP DECLSPEC_NORETURN void __cdecl exit(int);
_ACRTIMP DECLSPEC_NORETURN void __cdecl quick_exit(int);
int __cdecl system(const char*);
_ACRTIMP int __cdecl system(const char*);
#ifdef __cplusplus
}
......@@ -85,14 +85,14 @@ static inline intptr_t spawnvpe(int flags, const char* name, const char* const*
#define execvpe _execvpe
#if defined(__GNUC__) && (__GNUC__ < 4)
extern intptr_t WINAPIV execl(const char*,const char*,...) __attribute__((alias("_execl")));
extern intptr_t WINAPIV execle(const char*,const char*,...) __attribute__((alias("_execle")));
extern intptr_t WINAPIV execlp(const char*,const char*,...) __attribute__((alias("_execlp")));
extern intptr_t WINAPIV execlpe(const char*,const char*,...) __attribute__((alias("_execlpe")));
extern intptr_t WINAPIV spawnl(int,const char*,const char*,...) __attribute__((alias("_spawnl")));
extern intptr_t WINAPIV spawnle(int,const char*,const char*,...) __attribute__((alias("_spawnle")));
extern intptr_t WINAPIV spawnlp(int,const char*,const char*,...) __attribute__((alias("_spawnlp")));
extern intptr_t WINAPIV spawnlpe(int,const char*,const char*,...) __attribute__((alias("_spawnlpe")));
_ACRTIMP intptr_t WINAPIV execl(const char*,const char*,...) __attribute__((alias("_execl")));
_ACRTIMP intptr_t WINAPIV execle(const char*,const char*,...) __attribute__((alias("_execle")));
_ACRTIMP intptr_t WINAPIV execlp(const char*,const char*,...) __attribute__((alias("_execlp")));
_ACRTIMP intptr_t WINAPIV execlpe(const char*,const char*,...) __attribute__((alias("_execlpe")));
_ACRTIMP intptr_t WINAPIV spawnl(int,const char*,const char*,...) __attribute__((alias("_spawnl")));
_ACRTIMP intptr_t WINAPIV spawnle(int,const char*,const char*,...) __attribute__((alias("_spawnle")));
_ACRTIMP intptr_t WINAPIV spawnlp(int,const char*,const char*,...) __attribute__((alias("_spawnlp")));
_ACRTIMP intptr_t WINAPIV spawnlpe(int,const char*,const char*,...) __attribute__((alias("_spawnlpe")));
#else
#define execl _execl
#define execle _execle
......
......@@ -26,10 +26,10 @@
extern "C" {
#endif
void* __cdecl _lfind(const void*,const void*,unsigned int*,unsigned int,int (__cdecl *)(const void*,const void*));
void* __cdecl _lsearch(const void*,void*,unsigned int*,unsigned int,int (__cdecl *)(const void*,const void*));
void* __cdecl bsearch(const void*,const void*,size_t,size_t,int (__cdecl *)(const void*,const void*));
void __cdecl qsort(void*,size_t,size_t,int (__cdecl *)(const void*,const void*));
_ACRTIMP void* __cdecl _lfind(const void*,const void*,unsigned int*,unsigned int,int (__cdecl *)(const void*,const void*));
_ACRTIMP void* __cdecl _lsearch(const void*,void*,unsigned int*,unsigned int,int (__cdecl *)(const void*,const void*));
_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*));
#ifdef __cplusplus
}
......
......@@ -143,14 +143,14 @@ typedef _JBTYPE jmp_buf[_JBLEN];
extern "C" {
#endif
void __cdecl longjmp(jmp_buf,int);
_ACRTIMP void __cdecl longjmp(jmp_buf,int);
#ifdef _WIN64
# ifdef _UCRT
# define _setjmpex __intrinsic_setjmpex
# endif
# ifdef __GNUC__
int __cdecl __attribute__ ((__nothrow__,__returns_twice__)) _setjmpex(jmp_buf,void*);
_ACRTIMP int __cdecl __attribute__ ((__nothrow__,__returns_twice__)) _setjmpex(jmp_buf,void*);
# define setjmp(buf) _setjmpex(buf,__builtin_frame_address(0))
# define setjmpex(buf) _setjmpex(buf,__builtin_frame_address(0))
# endif
......@@ -159,9 +159,9 @@ int __cdecl __attribute__ ((__nothrow__,__returns_twice__)) _setjmpex(jmp_buf,vo
# define _setjmp __intrinsic_setjmp
# endif
# ifdef __GNUC__
int __cdecl __attribute__ ((__nothrow__,__returns_twice__)) _setjmp(jmp_buf);
_ACRTIMP int __cdecl __attribute__ ((__nothrow__,__returns_twice__)) _setjmp(jmp_buf);
# else
int __cdecl _setjmp(jmp_buf);
_ACRTIMP int __cdecl _setjmp(jmp_buf);
# endif
#endif /* _WIN64 */
......
......@@ -42,9 +42,9 @@ typedef void (__cdecl *__sighandler_t)(int);
#define SIG_IGN ((__sighandler_t)1)
#define SIG_ERR ((__sighandler_t)-1)
void** __cdecl __pxcptinfoptrs(void);
__sighandler_t __cdecl signal(int sig, __sighandler_t func);
int __cdecl raise(int sig);
_ACRTIMP void** __cdecl __pxcptinfoptrs(void);
_ACRTIMP __sighandler_t __cdecl signal(int sig, __sighandler_t func);
_ACRTIMP int __cdecl raise(int sig);
#ifdef __cplusplus
}
......
......@@ -33,8 +33,8 @@
extern "C" {
#endif
__msvcrt_ulong __cdecl __threadid(void);
__msvcrt_ulong __cdecl __threadhandle(void);
_ACRTIMP __msvcrt_ulong __cdecl __threadid(void);
_ACRTIMP __msvcrt_ulong __cdecl __threadhandle(void);
#define _threadid (__threadid())
#ifdef __cplusplus
......
......@@ -53,10 +53,10 @@ extern "C" {
#ifndef _STDIO_DEFINED
# ifdef __i386__
FILE* __cdecl __p__iob(void);
_ACRTIMP FILE* __cdecl __p__iob(void);
# define _iob (__p__iob())
# else
FILE* __cdecl __iob_func(void);
_ACRTIMP FILE* __cdecl __iob_func(void);
# define _iob (__iob_func())
# endif
#endif /* _STDIO_DEFINED */
......@@ -66,81 +66,81 @@ FILE* __cdecl __iob_func(void);
#ifndef _STDIO_DEFINED
#define _STDIO_DEFINED
int __cdecl _fcloseall(void);
FILE* __cdecl _fdopen(int,const char*);
int __cdecl _fgetchar(void);
int __cdecl _filbuf(FILE*);
int __cdecl _fileno(FILE*);
int __cdecl _flsbuf(int,FILE*);
int __cdecl _flushall(void);
int __cdecl _fputchar(int);
FILE* __cdecl _fsopen(const char*,const char*,int);
int __cdecl _get_printf_count_output(void);
int __cdecl _getmaxstdio(void);
int __cdecl _getw(FILE*);
int __cdecl _pclose(FILE*);
FILE* __cdecl _popen(const char*,const char*);
int __cdecl _putw(int,FILE*);
int __cdecl _rmtmp(void);
int __cdecl _set_printf_count_output(int);
int __cdecl _setmaxstdio(int);
char* __cdecl _tempnam(const char*,const char*);
int __cdecl _unlink(const char*);
size_t __cdecl _fread_nolock(void*,size_t,size_t,FILE*);
size_t __cdecl _fread_nolock_s(void*,size_t,size_t,size_t,FILE*);
size_t __cdecl _fwrite_nolock(const void*,size_t,size_t,FILE*);
int __cdecl _fclose_nolock(FILE*);
int __cdecl _fflush_nolock(FILE*);
int __cdecl _fgetc_nolock(FILE*);
int __cdecl _fputc_nolock(int,FILE*);
int __cdecl _fseek_nolock(FILE*,__msvcrt_long,int);
int __cdecl _fseeki64_nolock(FILE*,__int64,int);
__msvcrt_long __cdecl _ftell_nolock(FILE*);
__int64 __cdecl _ftelli64_nolock(FILE*);
int __cdecl _getc_nolock(FILE*);
int __cdecl _putc_nolock(int,FILE*);
int __cdecl _ungetc_nolock(int,FILE*);
void __cdecl clearerr(FILE*);
errno_t __cdecl clearerr_s(FILE*);
int __cdecl fclose(FILE*);
int __cdecl feof(FILE*);
int __cdecl ferror(FILE*);
int __cdecl fflush(FILE*);
int __cdecl fgetc(FILE*);
int __cdecl fgetpos(FILE*,fpos_t*);
char* __cdecl fgets(char*,int,FILE*);
FILE* __cdecl fopen(const char*,const char*);
errno_t __cdecl fopen_s(FILE**,const char*,const char*);
int __cdecl fputc(int,FILE*);
int __cdecl fputs(const char*,FILE*);
size_t __cdecl fread(void*,size_t,size_t,FILE*);
size_t __cdecl fread_s(void*,size_t,size_t,size_t,FILE*);
FILE* __cdecl freopen(const char*,const char*,FILE*);
int __cdecl fseek(FILE*,__msvcrt_long,int);
int __cdecl _fseeki64(FILE*,__int64,int);
int __cdecl fsetpos(FILE*,fpos_t*);
__msvcrt_long __cdecl ftell(FILE*);
__int64 __cdecl _ftelli64(FILE*);
size_t __cdecl fwrite(const void*,size_t,size_t,FILE*);
int __cdecl getc(FILE*);
int __cdecl getchar(void);
char* __cdecl gets(char*);
void __cdecl perror(const char*);
int __cdecl putc(int,FILE*);
int __cdecl putchar(int);
int __cdecl puts(const char*);
int __cdecl remove(const char*);
int __cdecl rename(const char*,const char*);
void __cdecl rewind(FILE*);
void __cdecl setbuf(FILE*,char*);
int __cdecl setvbuf(FILE*,char*,int,size_t);
FILE* __cdecl tmpfile(void);
char* __cdecl tmpnam(char*);
int __cdecl ungetc(int,FILE*);
unsigned int __cdecl _get_output_format(void);
unsigned int __cdecl _set_output_format(void);
_ACRTIMP int __cdecl _fcloseall(void);
_ACRTIMP FILE* __cdecl _fdopen(int,const char*);
_ACRTIMP int __cdecl _fgetchar(void);
_ACRTIMP int __cdecl _filbuf(FILE*);
_ACRTIMP int __cdecl _fileno(FILE*);
_ACRTIMP int __cdecl _flsbuf(int,FILE*);
_ACRTIMP int __cdecl _flushall(void);
_ACRTIMP int __cdecl _fputchar(int);
_ACRTIMP FILE* __cdecl _fsopen(const char*,const char*,int);
_ACRTIMP int __cdecl _get_printf_count_output(void);
_ACRTIMP int __cdecl _getmaxstdio(void);
_ACRTIMP int __cdecl _getw(FILE*);
_ACRTIMP int __cdecl _pclose(FILE*);
_ACRTIMP FILE* __cdecl _popen(const char*,const char*);
_ACRTIMP int __cdecl _putw(int,FILE*);
_ACRTIMP int __cdecl _rmtmp(void);
_ACRTIMP int __cdecl _set_printf_count_output(int);
_ACRTIMP int __cdecl _setmaxstdio(int);
_ACRTIMP char* __cdecl _tempnam(const char*,const char*);
_ACRTIMP int __cdecl _unlink(const char*);
_ACRTIMP size_t __cdecl _fread_nolock(void*,size_t,size_t,FILE*);
_ACRTIMP size_t __cdecl _fread_nolock_s(void*,size_t,size_t,size_t,FILE*);
_ACRTIMP size_t __cdecl _fwrite_nolock(const void*,size_t,size_t,FILE*);
_ACRTIMP int __cdecl _fclose_nolock(FILE*);
_ACRTIMP int __cdecl _fflush_nolock(FILE*);
_ACRTIMP int __cdecl _fgetc_nolock(FILE*);
_ACRTIMP int __cdecl _fputc_nolock(int,FILE*);
_ACRTIMP int __cdecl _fseek_nolock(FILE*,__msvcrt_long,int);
_ACRTIMP int __cdecl _fseeki64_nolock(FILE*,__int64,int);
_ACRTIMP __msvcrt_long __cdecl _ftell_nolock(FILE*);
_ACRTIMP __int64 __cdecl _ftelli64_nolock(FILE*);
_ACRTIMP int __cdecl _getc_nolock(FILE*);
_ACRTIMP int __cdecl _putc_nolock(int,FILE*);
_ACRTIMP int __cdecl _ungetc_nolock(int,FILE*);
_ACRTIMP void __cdecl clearerr(FILE*);
_ACRTIMP errno_t __cdecl clearerr_s(FILE*);
_ACRTIMP int __cdecl fclose(FILE*);
_ACRTIMP int __cdecl feof(FILE*);
_ACRTIMP int __cdecl ferror(FILE*);
_ACRTIMP int __cdecl fflush(FILE*);
_ACRTIMP int __cdecl fgetc(FILE*);
_ACRTIMP int __cdecl fgetpos(FILE*,fpos_t*);
_ACRTIMP char* __cdecl fgets(char*,int,FILE*);
_ACRTIMP FILE* __cdecl fopen(const char*,const char*);
_ACRTIMP errno_t __cdecl fopen_s(FILE**,const char*,const char*);
_ACRTIMP int __cdecl fputc(int,FILE*);
_ACRTIMP int __cdecl fputs(const char*,FILE*);
_ACRTIMP size_t __cdecl fread(void*,size_t,size_t,FILE*);
_ACRTIMP size_t __cdecl fread_s(void*,size_t,size_t,size_t,FILE*);
_ACRTIMP FILE* __cdecl freopen(const char*,const char*,FILE*);
_ACRTIMP int __cdecl fseek(FILE*,__msvcrt_long,int);
_ACRTIMP int __cdecl _fseeki64(FILE*,__int64,int);
_ACRTIMP int __cdecl fsetpos(FILE*,fpos_t*);
_ACRTIMP __msvcrt_long __cdecl ftell(FILE*);
_ACRTIMP __int64 __cdecl _ftelli64(FILE*);
_ACRTIMP size_t __cdecl fwrite(const void*,size_t,size_t,FILE*);
_ACRTIMP int __cdecl getc(FILE*);
_ACRTIMP int __cdecl getchar(void);
_ACRTIMP char* __cdecl gets(char*);
_ACRTIMP void __cdecl perror(const char*);
_ACRTIMP int __cdecl putc(int,FILE*);
_ACRTIMP int __cdecl putchar(int);
_ACRTIMP int __cdecl puts(const char*);
_ACRTIMP int __cdecl remove(const char*);
_ACRTIMP int __cdecl rename(const char*,const char*);
_ACRTIMP void __cdecl rewind(FILE*);
_ACRTIMP void __cdecl setbuf(FILE*,char*);
_ACRTIMP int __cdecl setvbuf(FILE*,char*,int,size_t);
_ACRTIMP FILE* __cdecl tmpfile(void);
_ACRTIMP char* __cdecl tmpnam(char*);
_ACRTIMP int __cdecl ungetc(int,FILE*);
_ACRTIMP unsigned int __cdecl _get_output_format(void);
_ACRTIMP unsigned int __cdecl _set_output_format(void);
#ifdef _UCRT
......@@ -394,7 +394,7 @@ _ACRTIMP int __cdecl vprintf_s(const char*,__ms_va_list);
_ACRTIMP int __cdecl vsprintf(char*,const char*,__ms_va_list);
_ACRTIMP int __cdecl vsprintf_s(char*,size_t,const char*,__ms_va_list);
int __cdecl _vsnprintf(char*,size_t,const char*,__ms_va_list);
_ACRTIMP int __cdecl _vsnprintf(char*,size_t,const char*,__ms_va_list);
static inline int vsnprintf(char *buffer, size_t size, const char *format, __ms_va_list args) { return _vsnprintf(buffer,size,format,args); }
_ACRTIMP int WINAPIV _snscanf_l(const char*,size_t,const char*,_locale_t,...);
......
......@@ -196,19 +196,19 @@ extern "C" {
# endif
#endif
int __cdecl _fstat32(int, struct _stat32*);
int __cdecl _fstat32i64(int, struct _stat32i64*);
int __cdecl _fstat64(int,struct _stat64*);
int __cdecl _fstat64i32(int,struct _stat64i32*);
int __cdecl _stat32(const char*, struct _stat32*);
int __cdecl _stat32i64(const char*, struct _stat32i64*);
int __cdecl _stat64(const char*,struct _stat64*);
int __cdecl _stat64i32(const char*,struct _stat64i32*);
int __cdecl _umask(int);
int __cdecl _wstat32(const wchar_t*,struct _stat32*);
int __cdecl _wstat32i64(const wchar_t*, struct _stat32i64*);
int __cdecl _wstat64(const wchar_t*,struct _stat64*);
int __cdecl _wstat64i32(const wchar_t*,struct _stat64i32*);
_ACRTIMP int __cdecl _fstat32(int, struct _stat32*);
_ACRTIMP int __cdecl _fstat32i64(int, struct _stat32i64*);
_ACRTIMP int __cdecl _fstat64(int,struct _stat64*);
_ACRTIMP int __cdecl _fstat64i32(int,struct _stat64i32*);
_ACRTIMP int __cdecl _stat32(const char*, struct _stat32*);
_ACRTIMP int __cdecl _stat32i64(const char*, struct _stat32i64*);
_ACRTIMP int __cdecl _stat64(const char*,struct _stat64*);
_ACRTIMP int __cdecl _stat64i32(const char*,struct _stat64i32*);
_ACRTIMP int __cdecl _umask(int);
_ACRTIMP int __cdecl _wstat32(const wchar_t*,struct _stat32*);
_ACRTIMP int __cdecl _wstat32i64(const wchar_t*, struct _stat32i64*);
_ACRTIMP int __cdecl _wstat64(const wchar_t*,struct _stat64*);
_ACRTIMP int __cdecl _wstat64i32(const wchar_t*,struct _stat64i32*);
#ifdef __cplusplus
}
......
......@@ -54,8 +54,8 @@ struct __timeb64
extern "C" {
#endif
void __cdecl _ftime32(struct __timeb32*);
void __cdecl _ftime64(struct __timeb64*);
_ACRTIMP void __cdecl _ftime32(struct __timeb32*);
_ACRTIMP void __cdecl _ftime64(struct __timeb64*);
#ifdef __cplusplus
}
......
......@@ -47,12 +47,12 @@ struct __utimbuf64
extern "C" {
#endif
int __cdecl _futime32(int,struct __utimbuf32*);
int __cdecl _futime64(int,struct __utimbuf64*);
int __cdecl _utime32(const char*,struct __utimbuf32*);
int __cdecl _utime64(const char*,struct __utimbuf64*);
int __cdecl _wutime32(const wchar_t*,struct __utimbuf32*);
int __cdecl _wutime64(const wchar_t*,struct __utimbuf64*);
_ACRTIMP int __cdecl _futime32(int,struct __utimbuf32*);
_ACRTIMP int __cdecl _futime64(int,struct __utimbuf64*);
_ACRTIMP int __cdecl _utime32(const char*,struct __utimbuf32*);
_ACRTIMP int __cdecl _utime64(const char*,struct __utimbuf64*);
_ACRTIMP int __cdecl _wutime32(const wchar_t*,struct __utimbuf32*);
_ACRTIMP int __cdecl _wutime64(const wchar_t*,struct __utimbuf64*);
#ifdef _USE_32BIT_TIME_T
static inline int _futime(int fd, struct _utimbuf *buf) { return _futime32(fd, (struct __utimbuf32*)buf); }
......
......@@ -43,10 +43,10 @@ extern "C" {
#define _timezone (*__p__timezone())
#define _tzname (__p__tzname())
int * __cdecl __p__daylight(void);
__msvcrt_long * __cdecl __p__dstbias(void);
__msvcrt_long * __cdecl __p__timezone(void);
char ** __cdecl __p__tzname(void);
_ACRTIMP int * __cdecl __p__daylight(void);
_ACRTIMP __msvcrt_long * __cdecl __p__dstbias(void);
_ACRTIMP __msvcrt_long * __cdecl __p__timezone(void);
_ACRTIMP char ** __cdecl __p__tzname(void);
#else
extern int _daylight;
extern __msvcrt_long _dstbias;
......@@ -63,31 +63,31 @@ extern char *_tzname;
#define _time32 time
#endif
unsigned __cdecl _getsystime(struct tm*);
unsigned __cdecl _setsystime(struct tm*,unsigned);
char* __cdecl _strdate(char*);
errno_t __cdecl _strdate_s(char*,size_t);
char* __cdecl _strtime(char*);
errno_t __cdecl _strtime_s(char*,size_t);
void __cdecl _tzset(void);
_ACRTIMP unsigned __cdecl _getsystime(struct tm*);
_ACRTIMP unsigned __cdecl _setsystime(struct tm*,unsigned);
_ACRTIMP char* __cdecl _strdate(char*);
_ACRTIMP errno_t __cdecl _strdate_s(char*,size_t);
_ACRTIMP char* __cdecl _strtime(char*);
_ACRTIMP errno_t __cdecl _strtime_s(char*,size_t);
_ACRTIMP void __cdecl _tzset(void);
char* __cdecl asctime(const struct tm*);
clock_t __cdecl clock(void);
char* __cdecl _ctime32(const __time32_t*);
char* __cdecl _ctime64(const __time64_t*);
double __cdecl _difftime32(__time32_t,__time32_t);
double __cdecl _difftime64(__time64_t,__time64_t);
struct tm* __cdecl _gmtime32(const __time32_t*);
struct tm* __cdecl _gmtime64(const __time64_t*);
struct tm* __cdecl _localtime32(const __time32_t*);
errno_t __cdecl _localtime32_s(struct tm*, const __time32_t*);
struct tm* __cdecl _localtime64(const __time64_t*);
errno_t __cdecl _localtime64_s(struct tm*, const __time64_t*);
__time32_t __cdecl _mktime32(struct tm*);
__time64_t __cdecl _mktime64(struct tm*);
size_t __cdecl strftime(char*,size_t,const char*,const struct tm*);
__time32_t __cdecl _time32(__time32_t*);
__time64_t __cdecl _time64(__time64_t*);
_ACRTIMP char* __cdecl asctime(const struct tm*);
_ACRTIMP clock_t __cdecl clock(void);
_ACRTIMP char* __cdecl _ctime32(const __time32_t*);
_ACRTIMP char* __cdecl _ctime64(const __time64_t*);
_ACRTIMP double __cdecl _difftime32(__time32_t,__time32_t);
_ACRTIMP double __cdecl _difftime64(__time64_t,__time64_t);
_ACRTIMP struct tm* __cdecl _gmtime32(const __time32_t*);
_ACRTIMP struct tm* __cdecl _gmtime64(const __time64_t*);
_ACRTIMP struct tm* __cdecl _localtime32(const __time32_t*);
_ACRTIMP errno_t __cdecl _localtime32_s(struct tm*, const __time32_t*);
_ACRTIMP struct tm* __cdecl _localtime64(const __time64_t*);
_ACRTIMP errno_t __cdecl _localtime64_s(struct tm*, const __time64_t*);
_ACRTIMP __time32_t __cdecl _mktime32(struct tm*);
_ACRTIMP __time64_t __cdecl _mktime64(struct tm*);
_ACRTIMP size_t __cdecl strftime(char*,size_t,const char*,const struct tm*);
_ACRTIMP __time32_t __cdecl _time32(__time32_t*);
_ACRTIMP __time64_t __cdecl _time64(__time64_t*);
#ifndef _USE_32BIT_TIME_T
static inline char* ctime(const time_t *t) { return _ctime64(t); }
......
......@@ -31,7 +31,7 @@ typedef int mbstate_t;
#ifndef _WLOCALE_DEFINED
#define _WLOCALE_DEFINED
wchar_t* __cdecl _wsetlocale(int,const wchar_t*);
_ACRTIMP wchar_t* __cdecl _wsetlocale(int,const wchar_t*);
#endif /* _WLOCALE_DEFINED */
wchar_t __cdecl btowc(int);
......@@ -41,7 +41,8 @@ size_t __cdecl mbsrtowcs(wchar_t*,const char**,size_t,mbstate_t*);
size_t __cdecl wcrtomb(char*,wchar_t,mbstate_t*);
size_t __cdecl wcsrtombs(char*,const wchar_t**,size_t,mbstate_t*);
int __cdecl wctob(wint_t);
errno_t __cdecl wmemcpy_s(wchar_t *, size_t, const wchar_t *, size_t);
_ACRTIMP errno_t __cdecl wmemcpy_s(wchar_t *, size_t, const wchar_t *, size_t);
static inline wchar_t *wmemchr(const wchar_t *s, wchar_t c, size_t n)
{
......
......@@ -49,23 +49,23 @@ extern "C" {
#ifndef _WCTYPE_DEFINED
#define _WCTYPE_DEFINED
int __cdecl is_wctype(wint_t,wctype_t);
int __cdecl isleadbyte(int);
int __cdecl iswalnum(wint_t);
int __cdecl iswalpha(wint_t);
int __cdecl iswascii(wint_t);
int __cdecl iswcntrl(wint_t);
int __cdecl iswctype(wint_t,wctype_t);
int __cdecl iswdigit(wint_t);
int __cdecl iswgraph(wint_t);
int __cdecl iswlower(wint_t);
int __cdecl iswprint(wint_t);
int __cdecl iswpunct(wint_t);
int __cdecl iswspace(wint_t);
int __cdecl iswupper(wint_t);
int __cdecl iswxdigit(wint_t);
wchar_t __cdecl towlower(wchar_t);
wchar_t __cdecl towupper(wchar_t);
_ACRTIMP int __cdecl is_wctype(wint_t,wctype_t);
_ACRTIMP int __cdecl isleadbyte(int);
_ACRTIMP int __cdecl iswalnum(wint_t);
_ACRTIMP int __cdecl iswalpha(wint_t);
_ACRTIMP int __cdecl iswascii(wint_t);
_ACRTIMP int __cdecl iswcntrl(wint_t);
_ACRTIMP int __cdecl iswctype(wint_t,wctype_t);
_ACRTIMP int __cdecl iswdigit(wint_t);
_ACRTIMP int __cdecl iswgraph(wint_t);
_ACRTIMP int __cdecl iswlower(wint_t);
_ACRTIMP int __cdecl iswprint(wint_t);
_ACRTIMP int __cdecl iswpunct(wint_t);
_ACRTIMP int __cdecl iswspace(wint_t);
_ACRTIMP int __cdecl iswupper(wint_t);
_ACRTIMP int __cdecl iswxdigit(wint_t);
_ACRTIMP wchar_t __cdecl towlower(wchar_t);
_ACRTIMP wchar_t __cdecl towupper(wchar_t);
#endif /* _WCTYPE_DEFINED */
typedef wchar_t wctrans_t;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment