X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdlib%2Fqsort.c;h=757cae0f28444a0419a42b823adabc7ddcebda4a;hp=3e349fb683179a2adbe9553c24a447256d1dede5;hb=da0f3f353d417fed71f358a48d5d5394145e460d;hpb=ffa73a4a2673fece7cd63c471476db6bc4aef9e6 diff --git a/functions/stdlib/qsort.c b/functions/stdlib/qsort.c index 3e349fb..757cae0 100644 --- a/functions/stdlib/qsort.c +++ b/functions/stdlib/qsort.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /* qsort( void *, size_t, size_t, int(*)( const void *, const void * ) ) This file is part of the Public Domain C Library (PDCLib). @@ -130,7 +128,7 @@ void qsort( void * base, size_t nmemb, size_t size, int (*compar)( const void *, #endif #ifdef TEST -#include <_PDCLIB_test.h> +#include "_PDCLIB_test.h" #include #include @@ -154,7 +152,7 @@ int main( void ) strcpy( s, presort ); qsort( s, 1, 1, compare ); TESTCASE( strcmp( s, presort ) == 0 ); -#if __BSD_VISIBLE +#if defined(REGTEST) && (__BSD_VISIBLE || __APPLE__) puts( "qsort.c: Skipping test #4 for BSD as it goes into endless loop here." ); #else qsort( s, 100, 0, compare );