Even variables have to be marked as extern "C"...

This commit is contained in:
Andrew Johnson
2009-04-09 20:21:05 +00:00
parent b5acee6f76
commit 93ac840d6e
9 changed files with 80 additions and 16 deletions

View File

@@ -3,8 +3,7 @@
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE Versions 3.13.7
* and higher are distributed subject to a Software License Agreement found
* EPICS BASE is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\*************************************************************************/
@@ -16,7 +15,15 @@
#define finite(x) isfinite(x)
#ifdef __cplusplus
extern "C" {
#endif
epicsShareExtern float epicsNAN;
epicsShareExtern float epicsINF;
#ifdef __cplusplus
}
#endif
#endif /* epicsMathh */

View File

@@ -3,8 +3,7 @@
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE Versions 3.13.7
* and higher are distributed subject to a Software License Agreement found
* EPICS BASE is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\*************************************************************************/
@@ -15,7 +14,15 @@
#include <ieeefp.h>
#include <shareLib.h>
#ifdef __cplusplus
extern "C" {
#endif
epicsShareExtern float epicsNAN;
epicsShareExtern float epicsINF;
#ifdef __cplusplus
}
#endif
#endif /* epicsMathh */

View File

@@ -3,8 +3,7 @@
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE Versions 3.13.7
* and higher are distributed subject to a Software License Agreement found
* EPICS BASE is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\*************************************************************************/
@@ -16,7 +15,15 @@
#define isinf(D) (!finite((D)) && !(isnan((D))))
#ifdef __cplusplus
extern "C" {
#endif
epicsShareExtern float epicsNAN;
epicsShareExtern float epicsINF;
#ifdef __cplusplus
}
#endif
#endif /* epicsMathh */

View File

@@ -3,8 +3,7 @@
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE Versions 3.13.7
* and higher are distributed subject to a Software License Agreement found
* EPICS BASE is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\*************************************************************************/
@@ -27,7 +26,15 @@
#define isinf(D) ( !_finite(D) && !_isnan(D) )
#endif
#ifdef __cplusplus
extern "C" {
#endif
epicsShareExtern float epicsNAN;
epicsShareExtern float epicsINF;
#ifdef __cplusplus
}
#endif
#endif /* epicsMathh */

View File

@@ -3,8 +3,7 @@
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE Versions 3.13.7
* and higher are distributed subject to a Software License Agreement found
* EPICS BASE is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\*************************************************************************/
@@ -16,7 +15,15 @@
#define finite(D) (isfinite(D) != 0)
#ifdef __cplusplus
extern "C" {
#endif
epicsShareExtern float epicsNAN;
epicsShareExtern float epicsINF;
#ifdef __cplusplus
}
#endif
#endif /* epicsMathh */

View File

@@ -3,8 +3,7 @@
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE Versions 3.13.7
* and higher are distributed subject to a Software License Agreement found
* EPICS BASE is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\*************************************************************************/
@@ -16,7 +15,15 @@
#define isinf(D) (!finite((D)) && !(isnan((D))))
#ifdef __cplusplus
extern "C" {
#endif
epicsShareExtern float epicsNAN;
epicsShareExtern float epicsINF;
#ifdef __cplusplus
}
#endif
#endif /* epicsMathh */

View File

@@ -3,8 +3,7 @@
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE Versions 3.13.7
* and higher are distributed subject to a Software License Agreement found
* EPICS BASE is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\*************************************************************************/
@@ -14,7 +13,15 @@
#include <math.h>
#include <shareLib.h>
#ifdef __cplusplus
extern "C" {
#endif
epicsShareExtern float epicsNAN;
epicsShareExtern float epicsINF;
#ifdef __cplusplus
}
#endif
#endif /* epicsMathh */

View File

@@ -17,7 +17,15 @@
/* same as (!isnan(x) && !finite(x)) */
#endif
#ifdef __cplusplus
extern "C" {
#endif
epicsShareExtern float epicsNAN;
epicsShareExtern float epicsINF;
#ifdef __cplusplus
}
#endif
#endif /* INC_epicsMath_H */

View File

@@ -3,8 +3,7 @@
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE Versions 3.13.7
* and higher are distributed subject to a Software License Agreement found
* EPICS BASE is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\*************************************************************************/
@@ -19,7 +18,15 @@
#define isinf(D) isInf(D)
#define finite(D) (!isNan(D) && !isInf(D))
#ifdef __cplusplus
extern "C" {
#endif
epicsShareExtern float epicsNAN;
epicsShareExtern float epicsINF;
#ifdef __cplusplus
}
#endif
#endif /* epicsMathh */