From d522c270373264aff0a7a2066bc3163b09e9a94b Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Mon, 15 Jun 2020 12:56:51 -0700 Subject: [PATCH] mpi.h.in: Remove //-style comments Keep all comments in the user-facing mpi.h.in as "old style" C comments: /* */. This gives us maximum portability, just on the off chance that a user's C compiler does not support //-style comments. Signed-off-by: Jeff Squyres --- ompi/include/mpi.h.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ompi/include/mpi.h.in b/ompi/include/mpi.h.in index 74bc0977b4..5e1e4cf6d5 100644 --- a/ompi/include/mpi.h.in +++ b/ompi/include/mpi.h.in @@ -301,9 +301,10 @@ _Static_assert() */ # define OMPI_OMIT_MPI1_COMPAT_DECLS 1 # define OMPI_REMOVED_USE_STATIC_ASSERT 1 -// This macro definition may show up in compiler output. So we both -// outdent it back to column 0 and give it a user-friendly name to -// help users grok what we are trying to tell them here. +/* This macro definition may show up in compiler output. So we both + * outdent it back to column 0 and give it a user-friendly name to + * help users grok what we are trying to tell them here. + */ #define THIS_SYMBOL_WAS_REMOVED_IN_MPI30(symbol, new_symbol) 0; _Static_assert(0, #symbol " was removed in MPI-3.0. Use " #new_symbol " instead.") #define THIS_FUNCTION_WAS_REMOVED_IN_MPI30(func, newfunc) _Static_assert(0, #func " was removed in MPI-3.0. Use " #newfunc " instead.") # elif defined(__cplusplus) && (__cplusplus >= 201103L)