Fixed some issues found by winapi_check.
[wine] / include / msvcrt / search.h
1 /*
2  * Heap definitions
3  *
4  * Copyright 2001 Francois Gouget.
5  */
6 #ifndef __WINE_SEARCH_H
7 #define __WINE_SEARCH_H
8
9 #ifdef USE_MSVCRT_PREFIX
10 #define MSVCRT(x)    MSVCRT_##x
11 #else
12 #define MSVCRT(x)    x
13 #endif
14
15
16 #ifndef MSVCRT_SIZE_T_DEFINED
17 typedef unsigned int MSVCRT(size_t);
18 #define MSVCRT_SIZE_T_DEFINED
19 #endif
20
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 typedef int (*MSVCRT_compar_fn_t)(const void*,const void*);
27
28 void*       _lfind(const void*,const void*,unsigned int*,unsigned int,MSVCRT_compar_fn_t);
29 void*       _lsearch(const void*,void*,unsigned int*,unsigned int,MSVCRT_compar_fn_t);
30
31 void*       MSVCRT(bsearch)(const void*,const void*,MSVCRT(size_t),MSVCRT(size_t),MSVCRT_compar_fn_t);
32 void        MSVCRT(qsort)(void*,MSVCRT(size_t),MSVCRT(size_t),MSVCRT_compar_fn_t);
33
34 #ifdef __cplusplus
35 }
36 #endif
37
38
39 #ifndef USE_MSVCRT_PREFIX
40 #define lfind _lfind
41 #define lsearch _lsearch
42 #endif /* USE_MSVCRT_PREFIX */
43
44 #endif /* __WINE_SEARCH_H */