fixed non-rest compilation

This commit is contained in:
2014-11-17 17:06:50 +01:00
parent f36d742cd3
commit a2fdcce711
2 changed files with 6 additions and 5 deletions

View File

@ -13,8 +13,9 @@ using namespace std;
#include "UDPInterface.h"
#include "UDPBaseImplementation.h"
#include "UDPStandardImplementation.h"
#ifdef REST
#include "UDPRESTImplementation.h"
#endif
using namespace std;
@ -26,11 +27,11 @@ UDPInterface * UDPInterface::create(string receiver_type){
cout << "Starting " << receiver_type << endl;
return new UDPStandardImplementation();
}
//#ifdef REST
#ifdef REST
else if (receiver_type == "REST"){
return new UDPRESTImplementation();
}
//#endif
#endif
else{
FILE_LOG(logWARNING) << "[ERROR] UDP interface not supported, using standard implementation";
return new UDPBaseImplementation();