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 99 *                         University of Stuttgart.  All rights reserved. 
1010 * Copyright (c) 2004-2005 The Regents of the University of California. 
1111 *                         All rights reserved. 
12-  * Copyright (c) 2007-2016  Cisco Systems, Inc.  All rights reserved.  
12+  * Copyright (c) 2007-2019  Cisco Systems, Inc.  All rights reserved 
1313 * Copyright (c) 2008-2009 Sun Microsystems, Inc.  All rights reserved. 
1414 * Copyright (c) 2009-2012 Oak Rigde National Laboratory.  All rights reserved. 
1515 * Copyright (c) 2011      Sandia National Laboratories. All rights reserved. 
307307 * when building OMPI). 
308308 */ 
309309#if  !OMPI_BUILDING 
310+ #if  defined(c_plusplus ) ||  defined(__cplusplus )
311+ #define  OMPI_PREDEFINED_GLOBAL (type , global ) (static_cast<type> (static_cast<void *> (&(global))))
312+ #else 
310313#define  OMPI_PREDEFINED_GLOBAL (type , global ) ((type) ((void *) &(global)))
314+ #endif 
311315#else 
312316#define  OMPI_PREDEFINED_GLOBAL (type , global ) ((type) &(global))
313317#endif 
@@ -753,8 +757,13 @@ enum {
753757 */ 
754758#define  MPI_INFO_ENV  OMPI_PREDEFINED_GLOBAL(MPI_Info, ompi_mpi_info_env)
755759
760+ #if  defined(c_plusplus ) ||  defined(__cplusplus )
761+ #define  MPI_STATUS_IGNORE  (static_cast<MPI_Status *> (0))
762+ #define  MPI_STATUSES_IGNORE  (static_cast<MPI_Status *> (0))
763+ #else 
756764#define  MPI_STATUS_IGNORE  ((MPI_Status *) 0)
757765#define  MPI_STATUSES_IGNORE  ((MPI_Status *) 0)
766+ #endif 
758767
759768/* 
760769 * Special MPI_T handles 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments