1
1

* don't build qsort workaround unless we actually have a broken qsort

This commit was SVN r6824.
Этот коммит содержится в:
Brian Barrett 2005-08-12 15:28:11 +00:00
родитель a926a9b4fb
Коммит 070e376407
2 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -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