Changeset 5659

Show
Ignore:
Timestamp:
11/02/09 08:51:45 (3 weeks ago)
Author:
goodell
Message:

Avoid duplicate symbols in comm_create if weak symbols aren't available.

Fixes ticket #913.

No reviewer.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • mpich2/trunk/src/mpi/comm/comm_create.c

    r5398 r5659  
    1919/* -- End Profiling Symbol Block */ 
    2020 
    21 /* Define MPICH_MPI_FROM_PMPI if weak symbols are not supported to build 
    22    the MPI routines */ 
    23 #ifndef MPICH_MPI_FROM_PMPI 
    24 #undef MPI_Comm_create 
    25 #define MPI_Comm_create PMPI_Comm_create 
    26  
    27 #endif 
    28  
    2921/* prototypes to make the compiler happy in the case that PMPI_LOCAL expands to 
    3022 * nothing instead of "static" */ 
     
    4234PMPI_LOCAL int MPIR_Comm_create_intra(MPID_Comm *comm_ptr, MPID_Group *group_ptr, MPI_Comm *newcomm); 
    4335PMPI_LOCAL int MPIR_Comm_create_inter(MPID_Comm *comm_ptr, MPID_Group *group_ptr, MPI_Comm *newcomm); 
     36 
     37 
     38/* Define MPICH_MPI_FROM_PMPI if weak symbols are not supported to build 
     39   the MPI routines */ 
     40#ifndef MPICH_MPI_FROM_PMPI 
     41#undef MPI_Comm_create 
     42#define MPI_Comm_create PMPI_Comm_create 
    4443 
    4544/* This function allocates and calculates an array (*mapping_out) such that 
     
    486485} 
    487486 
     487#endif /* !defined(MPICH_MPI_FROM_PMPI) */ 
    488488 
    489489#undef FUNCNAME