include/msvcrt: Include calling convention with function pointers.
Signed-off-by: Daniel Lehman <dlehman@esri.com> Signed-off-by: Piotr Caban <piotr@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
56345c8757
commit
77ad8a477e
|
@ -26,17 +26,19 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void* __cdecl _lfind(const void*,const void*,unsigned int*,unsigned int,int (*)(const void*,const void*));
|
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 (*)(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 (*)(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 (*)(const void*,const void*));
|
void __cdecl qsort(void*,size_t,size_t,int (__cdecl *)(const void*,const void*));
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static inline void* lfind(const void* match, const void* start, unsigned int* array_size, unsigned int elem_size, int (*cf)(const void*,const void*)) { return _lfind(match, start, array_size, elem_size, cf); }
|
static inline void* lfind(const void* match, const void* start, unsigned int* array_size, unsigned int elem_size, int (__cdecl *cf)(const void*,const void*))
|
||||||
static inline void* lsearch(const void* match, void* start, unsigned int* array_size, unsigned int elem_size, int (*cf)(const void*,const void*) ) { return _lsearch(match, start, array_size, elem_size, cf); }
|
{ return _lfind(match, start, array_size, elem_size, cf); }
|
||||||
|
static inline void* lsearch(const void* match, void* start, unsigned int* array_size, unsigned int elem_size, int (__cdecl *cf)(const void*,const void*) )
|
||||||
|
{ return _lsearch(match, start, array_size, elem_size, cf); }
|
||||||
|
|
||||||
#endif /* __WINE_SEARCH_H */
|
#endif /* __WINE_SEARCH_H */
|
||||||
|
|
|
@ -188,7 +188,7 @@ void __cdecl _Exit(int);
|
||||||
void __cdecl _exit(int);
|
void __cdecl _exit(int);
|
||||||
void __cdecl abort(void);
|
void __cdecl abort(void);
|
||||||
int __cdecl abs(int);
|
int __cdecl abs(int);
|
||||||
int __cdecl atexit(void (*)(void));
|
int __cdecl atexit(void (__cdecl *)(void));
|
||||||
double __cdecl atof(const char*);
|
double __cdecl atof(const char*);
|
||||||
int __cdecl atoi(const char*);
|
int __cdecl atoi(const char*);
|
||||||
int __cdecl _atoi_l(const char*,_locale_t);
|
int __cdecl _atoi_l(const char*,_locale_t);
|
||||||
|
@ -226,8 +226,8 @@ __int64 __cdecl _strtoi64_l(const char*,char**,int,_locale_t);
|
||||||
unsigned __int64 __cdecl _strtoui64(const char*,char**,int);
|
unsigned __int64 __cdecl _strtoui64(const char*,char**,int);
|
||||||
unsigned __int64 __cdecl _strtoui64_l(const char*,char**,int,_locale_t);
|
unsigned __int64 __cdecl _strtoui64_l(const char*,char**,int,_locale_t);
|
||||||
int __cdecl system(const char*);
|
int __cdecl system(const char*);
|
||||||
void* __cdecl bsearch(const void*,const void*,size_t,size_t,int (*)(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 (*)(const void*,const void*));
|
void __cdecl qsort(void*,size_t,size_t,int (__cdecl *)(const void*,const void*));
|
||||||
|
|
||||||
#ifndef _WSTDLIB_DEFINED
|
#ifndef _WSTDLIB_DEFINED
|
||||||
#define _WSTDLIB_DEFINED
|
#define _WSTDLIB_DEFINED
|
||||||
|
|
Loading…
Reference in New Issue