usgs-coupled / iphreeqc

ctest results:
https://my.cdash.org/index.php?project=iphreeqc
7 stars 5 forks source link

Add missing include of stddef.h in IPhreeqc.h when IPHREEQC_NO_FORTRAN_MODULE is defined #48

Closed SpaceIm closed 3 months ago

SpaceIm commented 3 months ago

When IPHREEQC_NO_FORTRAN_MODULE is defined, the type of the last parameter of SetBasicFortranCallback() function is size_t, which is defined in stddef.h.

Without this fix, IPhreeqc.h is not self sufficient when IPHREEQC_NO_FORTRAN_MODULE is defined, leading to compilation error when it's included in a project.