put extern "C" around all epicsExport* to increase happyness of Windows

This commit is contained in:
2018-06-13 10:44:14 +02:00
parent cd5811f59d
commit 9d1084cdf8

View File

@ -73,13 +73,13 @@ extern "C" epicsShareFunc int epicsShareAPI iocshCmd(const char *command);
#endif // !EPICS_3_13
#include "devStream.h"
#if defined(__vxworks) || defined(vxWorks)
#include <symLib.h>
#include <sysSymTbl.h>
#endif
#include "devStream.h"
#define Z PRINTF_SIZE_T_PREFIX
enum MoreFlags {
@ -179,8 +179,10 @@ public:
// shell functions ///////////////////////////////////////////////////////
extern "C" { // needed for Windows
epicsExportAddress(int, streamDebug);
epicsExportAddress(int, streamError);
}
// for subroutine record
long streamReloadSub()
@ -271,7 +273,9 @@ static void streamRegistrar ()
(REGISTRYFUNCTION)streamReloadSub);
}
extern "C" {
epicsExportRegistrar(streamRegistrar);
}
#endif // !EPICS_3_13
// driver support ////////////////////////////////////////////////////////
@ -281,7 +285,9 @@ struct drvet stream = {
(DRVSUPFUN) Stream::report,
(DRVSUPFUN) Stream::drvInit
};
extern "C" {
epicsExportAddress(drvet, stream);
}
#ifdef EPICS_3_13
void streamEpicsPrintTimestamp(char* buffer, size_t size)