- Don't rely on the default calling convention being cdecl for function pointers
[reactos.git] / reactos / lib / sdk / crt / search / lfind.c
index 7894fd1..bd2dcd7 100644 (file)
@@ -5,7 +5,7 @@
  * @implemented
  */
 void *_lfind(const void *key, const void *base, unsigned int *nelp,
-         unsigned int width, int (*compar)(const void *, const void *))
+         unsigned int width, int (__cdecl *compar)(const void *, const void *))
 {
        char* char_base = (char*)base;
        unsigned int i;