Add a 'qsort' dummy according to current compiler standards.

Detected during the very rare condition of not finding a 'qsort'
during the ./configure step.
This commit is contained in:
Holger Vogt 2021-06-25 15:26:17 +02:00
parent 1d7e54d741
commit 9bb401d9cd
1 changed files with 17 additions and 1 deletions

View File

@ -16,6 +16,22 @@ Author: 1985 Wayne A. Christopher, U. C. Berkeley CAD Group
#ifndef HAVE_QSORT
#ifndef qsort
qsort() {}
int compar(const void* a, const void* b);
int compar(const void* a, const void* b) {
NG_IGNORE(a);
NG_IGNORE(b);
return 0;
}
void qsort(void* base, size_t num, size_t size,
int (*compar)(const void* a, const void* b))
{
NG_IGNORE(base);
NG_IGNORE(num);
NG_IGNORE(size);
NG_IGNORE(compar);
}
#endif
#endif