#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/fatalerror.h"
#include "gromacs/utility/gmxassert.h"
+#include "gromacs/utility/path.h"
#include "gromacs/utility/programcontext.h"
#include "gromacs/utility/smalloc.h"
#include "gromacs/utility/stringutil.h"
{
defName = ftp2defnm(fnm->ftp);
}
- else if (std::strchr(defName, '.') != NULL)
+ else if (Path::hasExtension(defName))
{
defType = fn2ftp(defName);
GMX_RELEASE_ASSERT(defType != efNR,