another attempt to fix windows build

This commit is contained in:
mrkraimer
2018-09-29 12:18:29 -04:00
parent ebd4e3827c
commit 7e0bc0c45a
3 changed files with 10 additions and 13 deletions

View File

@ -12,12 +12,11 @@
#include <string>
#include <stdexcept>
#include <memory>
#include <shareLib.h>
#include <pv/pvData.h>
#include <pv/bitSet.h>
#include <shareLib.h>
namespace epics { namespace pvCopy{
class PVCopyTraverseMasterCallback;

View File

@ -18,9 +18,7 @@
#define epicsExportSharedSymbols
#include <pv/pvStructureCopy.h>
#include <pv/pvArrayPlugin.h>
#include <pv/pvTimestampPlugin.h>
#include <pv/pvDeadbandPlugin.h>
#include <pv/pvPlugin.h>
using std::tr1::static_pointer_cast;
using std::tr1::dynamic_pointer_cast;
@ -77,13 +75,6 @@ PVCopyPtr PVCopy::create(
PVStructurePtr const &pvRequest,
string const & structureName)
{
static bool firstTime = true;
if(firstTime) {
firstTime = false;
PVArrayPlugin::create();
PVTimestampPlugin::create();
PVDeadbandPlugin::create();
}
PVStructurePtr pvStructure(pvRequest);
if(structureName.size()>0) {
if(pvStructure->getStructure()->getNumberFields()>0) {

View File

@ -11,6 +11,10 @@
#include <epicsGuard.h>
#include <pv/pvStructureCopy.h>
#include <pv/pvPlugin.h>
#include <pv/pvArrayPlugin.h>
#include <pv/pvTimestampPlugin.h>
#include <pv/pvDeadbandPlugin.h>
#define epicsExportSharedSymbols
@ -18,6 +22,7 @@
using std::tr1::static_pointer_cast;
using namespace epics::pvData;
using namespace epics::pvCopy;
using namespace std;
namespace epics { namespace pvDatabase {
@ -33,6 +38,8 @@ PVDatabasePtr PVDatabase::getMaster()
if(getMasterFirstCall) {
getMasterFirstCall = false;
pvDatabaseMaster = PVDatabasePtr(new PVDatabase());
PVArrayPlugin::create();
PVTimestampPlugin::create();
}
return pvDatabaseMaster;
}