From f16e86ec81a3b28103f37c9e657e914764bb2199 Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Wed, 25 May 2005 18:29:00 +0000 Subject: [PATCH] Fix logic mistake with the OMPI_WANT_CXX_BINDINGS macro -- it's not enough that it's defined; it must also be true before we include the C++ bindings header files. This commit was SVN r5868. --- include/mpi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mpi.h b/include/mpi.h index 0f3ced349d..2cdc519871 100644 --- a/include/mpi.h +++ b/include/mpi.h @@ -1691,7 +1691,7 @@ OMPI_DECLSPEC double PMPI_Wtime(void); * - We are using a C++ compiler */ -#if defined(OMPI_WANT_CXX_BINDINGS) && !OMPI_BUILDING +#if defined(OMPI_WANT_CXX_BINDINGS) && OMPI_WANT_CXX_BINDINGS && !OMPI_BUILDING #if defined(__cplusplus) || defined(c_plusplus) #include "mpi/cxx/mpicxx.h" #endif