Skip to content

Commit d522c27

Browse files
committed
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 <jsquyres@cisco.com>
1 parent 835f8f1 commit d522c27

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

ompi/include/mpi.h.in

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,10 @@
301301
_Static_assert() */
302302
# define OMPI_OMIT_MPI1_COMPAT_DECLS 1
303303
# define OMPI_REMOVED_USE_STATIC_ASSERT 1
304-
// This macro definition may show up in compiler output. So we both
305-
// outdent it back to column 0 and give it a user-friendly name to
306-
// help users grok what we are trying to tell them here.
304+
/* This macro definition may show up in compiler output. So we both
305+
* outdent it back to column 0 and give it a user-friendly name to
306+
* help users grok what we are trying to tell them here.
307+
*/
307308
#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.")
308309
#define THIS_FUNCTION_WAS_REMOVED_IN_MPI30(func, newfunc) _Static_assert(0, #func " was removed in MPI-3.0. Use " #newfunc " instead.")
309310
# elif defined(__cplusplus) && (__cplusplus >= 201103L)

0 commit comments

Comments
 (0)