Added extern "C" to iocsh registration code. Fixes #67

This commit is contained in:
kpetersn
2017-08-22 15:44:55 -05:00
parent 8966aeabf2
commit 2dafc4757c
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -363,6 +363,9 @@ extern "C" int omsMAXnetConfig(
/* Code for iocsh registration */
extern "C"
{
/* omsMAXnetConfig */
static const iocshArg omsMAXnetConfigArg0 = {"asyn motor port name", iocshArgString};
static const iocshArg omsMAXnetConfigArg1 = {"number of axes", iocshArgInt};
@@ -389,3 +392,4 @@ static void OmsMAXnetAsynRegister(void)
epicsExportRegistrar(OmsMAXnetAsynRegister);
}
+5
View File
@@ -589,6 +589,10 @@ extern "C" int omsMAXvConfig2(
}
/* Code for iocsh registration */
extern "C"
{
/* omsMAXvSetup */
static const iocshArg setupArg0 = {"Max. controller count", iocshArgInt};
static const iocshArg setupArg1 = {"VME address type", iocshArgInt};
@@ -649,3 +653,4 @@ static void OmsMAXvAsynRegister(void)
epicsExportRegistrar(OmsMAXvAsynRegister);
}