2005-06-27 03:11:37 +04:00
|
|
|
/*
|
2005-11-05 22:57:48 +03:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
|
|
|
* University Research and Technology
|
|
|
|
* Corporation. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
|
|
|
* of Tennessee Research Foundation. All rights
|
|
|
|
* reserved.
|
2005-06-27 03:11:37 +04:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
2005-07-04 06:16:57 +04:00
|
|
|
#ifndef OPAL_QSORT_H
|
|
|
|
#define OPAL_QSORT_H
|
2005-06-27 03:11:37 +04:00
|
|
|
|
2005-08-12 19:28:11 +04:00
|
|
|
#if OMPI_HAVE_BROKEN_QSORT
|
|
|
|
|
2005-06-27 17:53:01 +04:00
|
|
|
#ifdef HAVE_SYS_TYPES_H
|
2005-06-27 17:47:13 +04:00
|
|
|
#include <sys/types.h> /* for size_t */
|
|
|
|
#endif
|
|
|
|
|
2005-06-27 17:53:01 +04:00
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2005-07-04 06:16:57 +04:00
|
|
|
void opal_qsort(void *a, size_t n, size_t es, int (*cmp)(const void *, const void*));
|
2005-06-27 03:11:37 +04:00
|
|
|
|
2005-06-27 17:53:01 +04:00
|
|
|
#if defined(c_plusplus) || defined(__cplusplus)
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2005-08-12 19:28:11 +04:00
|
|
|
#else
|
|
|
|
#error "Don't include opal/qsort/qsort.h directly"
|
|
|
|
#endif /* OMPI_HAVE_BROKEN_QSORT */
|
|
|
|
|
2005-06-27 03:11:37 +04:00
|
|
|
#endif
|