Import Geant4 11.2.1 source tree

This commit is contained in:
Gabriele Cosmo
2024-02-16 14:58:45 +01:00
parent 860a2b92bf
commit dda54bbdcf
331 changed files with 48457 additions and 50699 deletions
@@ -4,17 +4,11 @@
*/
#include <stdlib.h>
#include <float.h>
#include <cmath>
#include "nf_utilities.h"
#ifdef WIN32
#include <float.h>
#define isfinite _finite
#else
#define isfinite std::isfinite
#endif
#if defined __cplusplus
namespace GIDI {
using namespace GIDI;
@@ -71,7 +65,7 @@ char *nf_floatToShortestString( double value, int significantDigits, int favorEF
if( flags & nf_floatToShortestString_includeSign ) sign = "+";
if( !isfinite( value ) ) {
if( !std::isfinite( value ) ) {
snprintf( Fmt, sizeof Fmt, "%%%sf", sign );
snprintf( Str_e, sizeof Str_e, Fmt, value );
return( strdup( Str_e ) );