1
0
Fork 0

removed v8 dependency

This commit is contained in:
Jan Steemann 2014-05-16 21:46:31 +02:00
parent 4bfde2e6d1
commit 42b33046d1
1 changed files with 6 additions and 4 deletions

View File

@ -38,8 +38,6 @@
#include "Basics/StringUtils.h"
#include "Basics/Utf8Helper.h"
#include <v8.h>
#include <openssl/ssl.h>
using namespace triagens::rest;
@ -62,7 +60,7 @@ using namespace triagens::rest;
////////////////////////////////////////////////////////////////////////////////
void Version::initialise () {
if (Values.size() > 0) {
if (! Values.empty()) {
return;
}
@ -122,7 +120,11 @@ std::string Version::getServerVersion () {
////////////////////////////////////////////////////////////////////////////////
std::string Version::getV8Version () {
return v8::V8::GetVersion();
#ifdef TRI_V8_VERSION
return std::string(TRI_V8_VERSION);
#else
return std::string("");
#endif
}
////////////////////////////////////////////////////////////////////////////////