Don't return from overlapped ReadFile on EAGAIN and other non-fatal
[wine/gsoc_dplay.git] / include / msvcrt / search.h
blobea6526ae7a8e45b4b8e9b939c8dbfd86d8e34c5d
1 /*
2 * Heap definitions
4 * Copyright 2001 Francois Gouget.
5 */
6 #ifndef __WINE_SEARCH_H
7 #define __WINE_SEARCH_H
8 #define __WINE_USE_MSVCRT
10 #ifdef USE_MSVCRT_PREFIX
11 #define MSVCRT(x) MSVCRT_##x
12 #else
13 #define MSVCRT(x) x
14 #endif
17 #ifndef MSVCRT_SIZE_T_DEFINED
18 typedef unsigned int MSVCRT(size_t);
19 #define MSVCRT_SIZE_T_DEFINED
20 #endif
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
27 typedef int (*MSVCRT_compar_fn_t)(const void*,const void*);
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);
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);
35 #ifdef __cplusplus
37 #endif
40 #ifndef USE_MSVCRT_PREFIX
41 #define lfind _lfind
42 #define lsearch _lsearch
43 #endif /* USE_MSVCRT_PREFIX */
45 #endif /* __WINE_SEARCH_H */