From bef82320715887fccbd6e7e30cab6c833d5561e7 Mon Sep 17 00:00:00 2001 From: Brian Barrett Date: Mon, 27 Jun 2005 13:53:01 +0000 Subject: [PATCH] * fix dumb typo * extern "C" the declaration This commit was SVN r6189. --- src/util/qsort.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/util/qsort.h b/src/util/qsort.h index 43e68ae924..6d80e30344 100644 --- a/src/util/qsort.h +++ b/src/util/qsort.h @@ -17,10 +17,18 @@ #ifndef OMPI_QSORT_H #define OMPI_QSORT_H -#ifdef HAV_SYS_TYPES_H +#ifdef HAVE_SYS_TYPES_H #include /* for size_t */ #endif +#if defined(c_plusplus) || defined(__cplusplus) +extern "C" { +#endif + void ompi_qsort(void *a, size_t n, size_t es, int (*cmp)(const void *, const void*)); +#if defined(c_plusplus) || defined(__cplusplus) +} +#endif + #endif