Skip to content

Commit 3fb5102

Browse files
committed
Fix refactoring's --disable-xdr support regression
1 parent 4b56632 commit 3fb5102

1 file changed

Lines changed: 16 additions & 7 deletions

File tree

src/utils/xdr_cxx.C

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -925,8 +925,13 @@ template <>
925925
void Xdr::data_stream (double * val, const unsigned int len, const unsigned int line_break)
926926
{
927927
this->_xfp_data_stream
928-
(val, len, (xdrproc_t)xdr_double, line_break,
929-
std::numeric_limits<double>::max_digits10);
928+
(val, len,
929+
#ifdef LIBMESH_HAVE_XDR
930+
(xdrproc_t)xdr_double,
931+
#else
932+
nullptr,
933+
#endif
934+
line_break, std::numeric_limits<double>::max_digits10);
930935
}
931936

932937

@@ -935,8 +940,13 @@ template <>
935940
void Xdr::data_stream (float * val, const unsigned int len, const unsigned int line_break)
936941
{
937942
this->_xfp_data_stream
938-
(val, len, (xdrproc_t)xdr_float, line_break,
939-
std::numeric_limits<float>::max_digits10);
943+
(val, len,
944+
#ifdef LIBMESH_HAVE_XDR
945+
(xdrproc_t)xdr_float,
946+
#else
947+
nullptr,
948+
#endif
949+
line_break, std::numeric_limits<float>::max_digits10);
940950
}
941951

942952

@@ -963,11 +973,10 @@ void Xdr::data_stream (Real * val, const unsigned int len, const unsigned int li
963973
template <typename XFP>
964974
void Xdr::_xfp_data_stream (XFP * val, const unsigned int len,
965975
#ifdef LIBMESH_HAVE_XDR
966-
xdrproc_t
976+
xdrproc_t xdr_proc,
967977
#else
968-
void *
978+
void *,
969979
#endif
970-
xdr_proc,
971980
const unsigned int line_break,
972981
const int n_digits)
973982
{

0 commit comments

Comments
 (0)