X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=direct%2Fydirectenv.h;h=b15147cad55fccf8e53578915d94b273070a0711;hb=4ae1d4603da3b68c82e8563191743000fa91d403;hp=eff8ff93f194e7f9b23cd79dd5c7f7e86c578abb;hpb=07353dd87a46afc753441028af8f5e8629b13bdc;p=yaffs2.git diff --git a/direct/ydirectenv.h b/direct/ydirectenv.h index eff8ff9..b15147c 100644 --- a/direct/ydirectenv.h +++ b/direct/ydirectenv.h @@ -35,6 +35,10 @@ void yaffs_bug_fn(const char *file_name, int line_no); #define YUCHAR unsigned char #define _Y(x) x +#ifndef Y_LOFF_T +#define Y_LOFF_T loff_t +#endif + #define yaffs_strcat(a, b) strcat(a, b) #define yaffs_strcpy(a, b) strcpy(a, b) #define yaffs_strncpy(a, b, c) strncpy(a, b, c) @@ -50,10 +54,7 @@ void yaffs_bug_fn(const char *file_name, int line_no); #define hweight8(x) yaffs_hweight8(x) #define hweight32(x) yaffs_hweight32(x) -void yaffs_qsort(void *aa, size_t n, size_t es, - int (*cmp)(const void *, const void *)); - -#define sort(base, n, sz, cmp_fn, swp) yaffs_qsort(base, n, sz, cmp_fn) +#define sort(base, n, sz, cmp_fn, swp) qsort(base, n, sz, cmp_fn) #define YAFFS_PATH_DIVIDERS "/"