make epicsNAN and epicsINF constants really constant

This commit is contained in:
Michael Davidsaver
2022-04-15 11:39:50 -07:00
parent 6ecc384116
commit 5485adacb9
8 changed files with 16 additions and 16 deletions

View File

@ -33,8 +33,8 @@ static float makeINF ( void )
#endif
extern "C" {
float epicsNAN = NAN;
float epicsINF = INFINITY;
const float epicsNAN = NAN;
const float epicsINF = INFINITY;
}
#ifdef _MSC_VER

View File

@ -20,8 +20,8 @@
extern "C" {
#endif
LIBCOM_API extern float epicsNAN;
LIBCOM_API extern float epicsINF;
LIBCOM_API extern const float epicsNAN;
LIBCOM_API extern const float epicsINF;
#ifdef __cplusplus
}

View File

@ -19,8 +19,8 @@
extern "C" {
#endif
LIBCOM_API extern float epicsNAN;
LIBCOM_API extern float epicsINF;
LIBCOM_API extern const float epicsNAN;
LIBCOM_API extern const float epicsINF;
#ifdef __cplusplus
}

View File

@ -31,8 +31,8 @@
extern "C" {
#endif
LIBCOM_API extern float epicsNAN;
LIBCOM_API extern float epicsINF;
LIBCOM_API extern const float epicsNAN;
LIBCOM_API extern const float epicsINF;
#ifdef __cplusplus
}

View File

@ -18,8 +18,8 @@
extern "C" {
#endif
LIBCOM_API extern float epicsNAN;
LIBCOM_API extern float epicsINF;
LIBCOM_API extern const float epicsNAN;
LIBCOM_API extern const float epicsINF;
#ifdef __cplusplus
}

View File

@ -35,8 +35,8 @@ extern "C" {
# define finite(x) isfinite((double)(x))
#endif
LIBCOM_API extern float epicsNAN;
LIBCOM_API extern float epicsINF;
LIBCOM_API extern const float epicsNAN;
LIBCOM_API extern const float epicsINF;
#ifdef __cplusplus
}

View File

@ -26,8 +26,8 @@
extern "C" {
#endif
LIBCOM_API extern float epicsNAN;
LIBCOM_API extern float epicsINF;
LIBCOM_API extern const float epicsNAN;
LIBCOM_API extern const float epicsINF;
#ifdef __cplusplus
}

View File

@ -30,8 +30,8 @@
extern "C" {
#endif
LIBCOM_API extern float epicsNAN;
LIBCOM_API extern float epicsINF;
LIBCOM_API extern const float epicsNAN;
LIBCOM_API extern const float epicsINF;
#ifdef __cplusplus
}