File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 9
9
* University of Stuttgart. All rights reserved.
10
10
* Copyright (c) 2004-2005 The Regents of the University of California.
11
11
* All rights reserved.
12
- * Copyright (c) 2007-2018 Cisco Systems, Inc. All rights reserved
12
+ * Copyright (c) 2007-2019 Cisco Systems, Inc. All rights reserved
13
13
* Copyright (c) 2008-2009 Sun Microsystems, Inc. All rights reserved.
14
14
* Copyright (c) 2009-2012 Oak Rigde National Laboratory. All rights reserved.
15
15
* Copyright (c) 2011 Sandia National Laboratories. All rights reserved.
325
325
* when building OMPI).
326
326
*/
327
327
#if !OMPI_BUILDING
328
+ #if defined(c_plusplus ) || defined(__cplusplus )
329
+ #define OMPI_PREDEFINED_GLOBAL (type , global ) (static_cast<type> (static_cast<void *> (&(global))))
330
+ #else
328
331
#define OMPI_PREDEFINED_GLOBAL (type , global ) ((type) ((void *) &(global)))
332
+ #endif
329
333
#else
330
334
#define OMPI_PREDEFINED_GLOBAL (type , global ) ((type) &(global))
331
335
#endif
@@ -758,8 +762,13 @@ enum {
758
762
*/
759
763
#define MPI_INFO_ENV OMPI_PREDEFINED_GLOBAL(MPI_Info, ompi_mpi_info_env)
760
764
765
+ #if defined(c_plusplus ) || defined(__cplusplus )
766
+ #define MPI_STATUS_IGNORE (static_cast<MPI_Status *> (0))
767
+ #define MPI_STATUSES_IGNORE (static_cast<MPI_Status *> (0))
768
+ #else
761
769
#define MPI_STATUS_IGNORE ((MPI_Status *) 0)
762
770
#define MPI_STATUSES_IGNORE ((MPI_Status *) 0)
771
+ #endif
763
772
764
773
/*
765
774
* Special MPI_T handles
You can’t perform that action at this time.
0 commit comments