Fix compilation errors on FreeBSD.
[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 #define __WINE_USE_MSVCRT
9
10 #ifdef USE_MSVCRT_PREFIX
11 #define MSVCRT(x)    MSVCRT_##x
12 #else
13 #define MSVCRT(x)    x
14 #endif
15
16
17 #ifndef MSVCRT_SIZE_T_DEFINED
18 typedef unsigned int MSVCRT(size_t);
19 #define MSVCRT_SIZE_T_DEFINED
20 #endif
21
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 typedef int (*MSVCRT_compar_fn_t)(const void*,const void*);
28
29 void*       _lfind(const void*,const void*,unsigned int*,unsigned int,MSVCRT_compar_fn_t);
30 void*       _lsearch(const void*,void*,unsigned int*,unsigned int,MSVCRT_compar_fn_t);
31
32 void*       MSVCRT(bsearch)(const void*,const void*,MSVCRT(size_t),MSVCRT(size_t),MSVCRT_compar_fn_t);
33 void        MSVCRT(qsort)(void*,MSVCRT(size_t),MSVCRT(size_t),MSVCRT_compar_fn_t);
34
35 #ifdef __cplusplus
36 }
37 #endif
38
39
40 #ifndef USE_MSVCRT_PREFIX
41 #define lfind _lfind
42 #define lsearch _lsearch
43 #endif /* USE_MSVCRT_PREFIX */
44
45 #endif /* __WINE_SEARCH_H */