added xf86qsort for xorg 6.8.2

ulab-original
jsorg71 18 years ago
parent 09a041aeaa
commit 58dc2e0df7

@ -685,6 +685,7 @@ xf86sprintf(char* s, const char* format, ...)
{
int ret;
va_list args;
va_start(args, format);
ret = vsprintf(s, format, args);
va_end(args);
@ -731,14 +732,14 @@ xf86frexp(double x, int* exp)
void*
xf86memcpy(void* dest, const void* src, xf86size_t n)
{
return memcpy(dest,src,(size_t)n);
return memcpy(dest, src, (size_t)n);
}
/*****************************************************************************/
int
xf86memcmp(const void* s1, const void* s2, xf86size_t n)
{
return memcmp(s1,s2,(size_t)n);
return memcmp(s1, s2, (size_t)n);
}
/*****************************************************************************/
@ -933,6 +934,14 @@ xf86strtok(char* s1, const char* s2)
return strtok(s1, s2);
}
/*****************************************************************************/
void
xf86qsort(void* base, xf86size_t nmemb, xf86size_t size,
int (*comp)(const void *, const void *))
{
qsort(base, nmemb, size, comp);
}
/*****************************************************************************/
char*
xf86strcat(char* dest, const char* src)

@ -4,7 +4,8 @@ readme for X11rdp server.
Directions for Xfree 4.5, 4.6 and Xorg 6.9.0.
make sure these are installed.
gcc, make, bison, flex, g++, ncursors
gcc, make, bison, flex, g++, ncursors, libpng-dev, expat-dev,
freetype-dev
First run make World.
This is the most dificult part.

Loading…
Cancel
Save