revert to use NULL instead of nullptr, so that it compiles without having to enable c++11 compatibility

This commit is contained in:
Axel Kohlmeyer
2022-04-09 20:54:59 -04:00
parent ddf67ec42d
commit 85b69000cd

View File

@ -183,7 +183,7 @@ double MPI_Wtime()
double time; double time;
struct timeval tv; struct timeval tv;
gettimeofday(&tv, nullptr); gettimeofday(&tv, NULL);
time = 1.0 * tv.tv_sec + 1.0e-6 * tv.tv_usec; time = 1.0 * tv.tv_sec + 1.0e-6 * tv.tv_usec;
return time; return time;
#endif #endif
@ -223,7 +223,7 @@ static int stubtypesize(MPI_Datatype datatype)
int MPI_Type_size(MPI_Datatype datatype, int *size) 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); *size = stubtypesize(datatype);
return 0; return 0;