From 85b69000cd79a7e07b218475601b35e85847c1b9 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Sat, 9 Apr 2022 20:54:59 -0400 Subject: [PATCH] revert to use NULL instead of nullptr, so that it compiles without having to enable c++11 compatibility --- src/STUBS/mpi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/STUBS/mpi.cpp b/src/STUBS/mpi.cpp index 0ef98f776f..13d0446e0b 100644 --- a/src/STUBS/mpi.cpp +++ b/src/STUBS/mpi.cpp @@ -183,7 +183,7 @@ double MPI_Wtime() double time; struct timeval tv; - gettimeofday(&tv, nullptr); + gettimeofday(&tv, NULL); time = 1.0 * tv.tv_sec + 1.0e-6 * tv.tv_usec; return time; #endif @@ -223,7 +223,7 @@ static int stubtypesize(MPI_Datatype datatype) int MPI_Type_size(MPI_Datatype datatype, int *size) { - if (size == nullptr) return MPI_ERR_ARG; + if (size == NULL) return MPI_ERR_ARG; *size = stubtypesize(datatype); return 0;