* don't build qsort workaround unless we actually have a broken qsort
This commit was SVN r6824.
Этот коммит содержится в:
родитель
a926a9b4fb
Коммит
070e376407
@ -33,6 +33,8 @@
|
||||
|
||||
#include "ompi_config.h"
|
||||
|
||||
#if OMPI_HAVE_BROKEN_QSORT
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "opal/util/qsort.h"
|
||||
@ -172,3 +174,5 @@ loop: SWAPINIT(a, es);
|
||||
}
|
||||
/* qsort(pn - r, r / es, es, cmp);*/
|
||||
}
|
||||
|
||||
#endif /* OMPI_HAVE_BROKEN_QSORT */
|
||||
|
@ -17,6 +17,8 @@
|
||||
#ifndef OPAL_QSORT_H
|
||||
#define OPAL_QSORT_H
|
||||
|
||||
#if OMPI_HAVE_BROKEN_QSORT
|
||||
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h> /* for size_t */
|
||||
#endif
|
||||
@ -31,4 +33,8 @@ void opal_qsort(void *a, size_t n, size_t es, int (*cmp)(const void *, const voi
|
||||
}
|
||||
#endif
|
||||
|
||||
#else
|
||||
#error "Don't include opal/qsort/qsort.h directly"
|
||||
#endif /* OMPI_HAVE_BROKEN_QSORT */
|
||||
|
||||
#endif
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user