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:
Daniel Lehman 2016-08-22 10:40:58 -07:00 committed by Alexandre Julliard
parent 56345c8757
commit 77ad8a477e
2 changed files with 11 additions and 9 deletions

View File

@ -26,17 +26,19 @@
extern "C" {
#endif
void* __cdecl _lfind(const void*,const void*,unsigned int*,unsigned int,int (*)(const void*,const void*));
void* __cdecl _lsearch(const void*,void*,unsigned int*,unsigned int,int (*)(const void*,const void*));
void* __cdecl bsearch(const void*,const void*,size_t,size_t,int (*)(const void*,const void*));
void __cdecl qsort(void*,size_t,size_t,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 (__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*));
#ifdef __cplusplus
}
#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* 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); }
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*))
{ 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 */

View File

@ -188,7 +188,7 @@ void __cdecl _Exit(int);
void __cdecl _exit(int);
void __cdecl abort(void);
int __cdecl abs(int);
int __cdecl atexit(void (*)(void));
int __cdecl atexit(void (__cdecl *)(void));
double __cdecl atof(const char*);
int __cdecl atoi(const char*);
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_l(const char*,char**,int,_locale_t);
int __cdecl system(const char*);
void* __cdecl bsearch(const void*,const void*,size_t,size_t,int (*)(const void*,const void*));
void __cdecl qsort(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 (__cdecl *)(const void*,const void*));
#ifndef _WSTDLIB_DEFINED
#define _WSTDLIB_DEFINED