1
1

Convert MPI_Offset to be a typedef instead of a #define. See the

following for the rationale:

http://www.open-mpi.org/community/lists/users/2005/11/0391.php

Note that mpi.h only receives AC_DEFINE's (not AC_SUBST's), so we
still have to AC_DEFINE to get the value in there -- so we AC_DEFINE
something that we give to a typedef.

This commit was SVN r8326.
Этот коммит содержится в:
Jeff Squyres 2005-11-30 03:16:24 +00:00
родитель b47aa5c142
Коммит d55893349f
2 изменённых файлов: 4 добавлений и 3 удалений

Просмотреть файл

@ -1278,7 +1278,7 @@ if test "$MPI_OFFSET_TYPE" = "not found"; then
AC_MSG_WARN([*** Unable to find the right definition for MPI_Offset])
AC_MSG_ERROR([Cannot continue])
fi
AC_DEFINE_UNQUOTED(MPI_Offset, $MPI_OFFSET_TYPE, [Type of MPI_Offset])
AC_DEFINE_UNQUOTED(OMPI_MPI_OFFSET_TYPE, $MPI_OFFSET_TYPE, [Type of MPI_Offset -- has to be defined here and typedef'ed later because mpi.h does not get AC SUBST's])
#
# If we haven't already, figure out an MPI datatype that corresponds

Просмотреть файл

@ -67,8 +67,8 @@
/* The size of a `int', as computed by sizeof. */
#undef SIZEOF_INT
/* Type of MPI_Offset */
#undef MPI_Offset
/* Type of MPI_Offset -- has to be defined here and typedef'ed later because mpi.h does not get AC SUBST's */
#undef OMPI_MPI_OFFSET_TYPE
/* Whether we want MPI cxx support or not */
#undef OMPI_WANT_CXX_BINDINGS
@ -140,6 +140,7 @@ extern "C" {
* Typedefs
*/
typedef long MPI_Aint;
typedef OMPI_MPI_OFFSET_TYPE MPI_Offset;
typedef struct ompi_communicator_t *MPI_Comm;
typedef struct ompi_datatype_t *MPI_Datatype;
typedef struct ompi_errhandler_t *MPI_Errhandler;