From f9f1087e7fe3e14235624b93bd6a4f613f4f3ea7 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Wed, 8 Nov 2006 16:56:17 +0000 Subject: [PATCH] Be nice and let everybody access this variable. This commit was SVN r12495. --- ompi/errhandler/errcode.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ompi/errhandler/errcode.h b/ompi/errhandler/errcode.h index 90e536f57b..f4ab90fb15 100644 --- a/ompi/errhandler/errcode.h +++ b/ompi/errhandler/errcode.h @@ -44,6 +44,8 @@ typedef struct ompi_mpi_errcode_t ompi_mpi_errcode_t; OMPI_DECLSPEC extern ompi_pointer_array_t ompi_mpi_errcodes; OMPI_DECLSPEC extern int ompi_mpi_errcode_lastused; +OMPI_DECLSPEC extern ompi_mpi_errcode_t ompi_err_unknown; + /** * Check for a valid error code */ @@ -67,7 +69,6 @@ static inline int ompi_mpi_errcode_get_class (int errcode) if (NULL != err) { return err->cls; } else { - extern ompi_mpi_errcode_t ompi_err_unknown; return ompi_err_unknown.cls; } }