#include "version.hh"
#include "version_generated.h"
-using namespace std;
-
static string productName("");
string compilerVersion()
string fullVersionString()
{
- stringstream s;
+ ostringstream s;
s << "PowerDNS "<<productName<<" "PDNS_VERSION" ("DIST_HOST" built "BUILD_DATE" "BUILD_HOST")";
return s.str();
}
#ifndef VERSION_HH
#define VERSION_HH
-#include <string>
-#include <sstream>
+#include "namespaces.hh"
-std::string compilerVersion();
+string compilerVersion();
void showProductVersion();
-std::string fullVersionString();
-void versionSetProduct(std::string product);
+string fullVersionString();
+void versionSetProduct(string product);
#endif //!VERSION_HH