22/*
33 * Copyright (c) 2016 Los Alamos National Security, LLC. All rights
44 * reserved.
5+ * Copyright (c) 2016 Research Organization for Information Science
6+ * and Technology (RIST). All rights reserved.
57 * $COPYRIGHT$
68 *
79 * Additional copyrights may follow
@@ -47,10 +49,12 @@ int ompi_cxx_errhandler_invoke_comm (MPI_Comm comm, int ret, const char *message
4749 return OMPI_ERRHANDLER_INVOKE (comm , ret , message );
4850}
4951
52+ #if OMPI_PROVIDE_MPI_FILE_INTERFACE
5053int ompi_cxx_errhandler_invoke_file (MPI_File file , int ret , const char * message )
5154{
5255 return OMPI_ERRHANDLER_INVOKE (file , ret , message );
5356}
57+ #endif
5458
5559int ompi_cxx_attr_create_keyval_comm (MPI_Comm_copy_attr_function * copy_fn ,
5660 MPI_Comm_delete_attr_function * delete_fn , int * keyval , void * extra_state ,
@@ -110,6 +114,7 @@ MPI_Errhandler ompi_cxx_errhandler_create_win (void *fn)
110114 return errhandler ;
111115}
112116
117+ #if OMPI_PROVIDE_MPI_FILE_INTERFACE
113118MPI_Errhandler ompi_cxx_errhandler_create_file (void * fn )
114119{
115120 ompi_errhandler_t * errhandler ;
@@ -120,6 +125,7 @@ MPI_Errhandler ompi_cxx_errhandler_create_file (void *fn)
120125 (ompi_errhandler_cxx_dispatch_fn_t * ) ompi_mpi_cxx_file_errhandler_invoke ;
121126 return errhandler ;
122127}
128+ #endif
123129
124130ompi_cxx_intercept_file_extra_state_t
125131* ompi_cxx_new_intercept_state (void * read_fn_cxx , void * write_fn_cxx , void * extent_fn_cxx ,
0 commit comments