From fb0e0b854abb5a0fe3ed3fdb5b55fcaae35e0633 Mon Sep 17 00:00:00 2001 From: Rainer Keller Date: Tue, 27 Jan 2009 19:19:04 +0000 Subject: [PATCH] - Again, no need for #include "orte/util/show_help.h" - Use BEGIN_C_DECLS and END_C_DECLS This commit was SVN r20358. --- ompi/mca/allocator/allocator.h | 11 ++++------- ompi/mca/allocator/basic/allocator_basic.c | 1 - 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/ompi/mca/allocator/allocator.h b/ompi/mca/allocator/allocator.h index 4508e5f37e..be0bcfc0d4 100644 --- a/ompi/mca/allocator/allocator.h +++ b/ompi/mca/allocator/allocator.h @@ -26,10 +26,8 @@ struct mca_mpool_base_resources_t; +BEGIN_C_DECLS -#if defined(c_plusplus) || defined(__cplusplus) -extern "C" { -#endif /* Here so that we can use mca_allocator_base_module_t in the function typedefs */ struct mca_allocator_base_module_t; @@ -110,7 +108,7 @@ typedef void* (*mca_allocator_base_component_segment_alloc_fn_t)( /** * A function to free memory from the control of the allocator framework * back to the system. This function is to be provided by the module to the - * allocator frmaework. + * allocator framework. */ typedef void (*mca_allocator_base_component_segment_free_fn_t)( struct mca_mpool_base_module_t* module, @@ -158,8 +156,7 @@ typedef struct mca_allocator_base_component_2_0_0_t mca_allocator_base_component */ OMPI_DECLSPEC extern int mca_allocator_base_output; -#if defined(c_plusplus) || defined(__cplusplus) -} -#endif +END_C_DECLS + #endif /* MCA_ALLOCATOR_H */ diff --git a/ompi/mca/allocator/basic/allocator_basic.c b/ompi/mca/allocator/basic/allocator_basic.c index bd5f5de1e9..88d913e6aa 100644 --- a/ompi/mca/allocator/basic/allocator_basic.c +++ b/ompi/mca/allocator/basic/allocator_basic.c @@ -19,7 +19,6 @@ */ #include "ompi_config.h" -#include "orte/util/show_help.h" #include "allocator_basic.h" #include "ompi/constants.h"