fixes #ifdefs to be sure no redefine can ever happen feature/array

Wed, 07 Aug 2019 21:20:08 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 07 Aug 2019 21:20:08 +0200
branch
feature/array
changeset 346
1a9c112f4116
parent 345
6089eb30a51a
child 347
62660a4875c9

fixes #ifdefs to be sure no redefine can ever happen

src/array.c file | annotate | diff | comparison | revisions
     1.1 --- a/src/array.c	Wed Aug 07 21:14:58 2019 +0200
     1.2 +++ b/src/array.c	Wed Aug 07 21:20:08 2019 +0200
     1.3 @@ -35,16 +35,14 @@
     1.4  #include <stdlib.h>
     1.5  
     1.6  #ifndef UCX_ARRAY_DISABLE_QSORT
     1.7 -#if defined(__GLIBC__)
     1.8 +#ifdef __GLIBC__
     1.9  #if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 8)
    1.10  #define ucx_array_sort_impl qsort_r
    1.11  #endif /* glibc version >= 2.8 */
    1.12 -#endif /* __GLIBC__ */
    1.13 -
    1.14 -#if defined(__APPLE__) || defined(__FreeBSD__)
    1.15 +#elif /* not  __GLIBC__ */ defined(__APPLE__) || defined(__FreeBSD__)
    1.16  #define ucx_array_sort_impl ucx_qsort_r
    1.17  #define USE_UCX_QSORT_R
    1.18 -#endif /* __APLE__ or __FreeBSD__ */
    1.19 +#endif /* __GLIBC__, __APLE__, __FreeBSD__ */
    1.20  #endif /* UCX_ARRAY_DISABLE_QSORT */
    1.21  
    1.22  #ifndef ucx_array_sort_impl

mercurial