summaryrefslogtreecommitdiff
path: root/qpid/gentools/templ.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/gentools/templ.cpp')
-rw-r--r--qpid/gentools/templ.cpp/AMQP_HighestVersion.h.tmpl (renamed from qpid/gentools/templ.cpp/AMQP_HighestVersion.cpp.tmpl)17
1 files changed, 14 insertions, 3 deletions
diff --git a/qpid/gentools/templ.cpp/AMQP_HighestVersion.cpp.tmpl b/qpid/gentools/templ.cpp/AMQP_HighestVersion.h.tmpl
index e82a8d697d..96ee9416b0 100644
--- a/qpid/gentools/templ.cpp/AMQP_HighestVersion.cpp.tmpl
+++ b/qpid/gentools/templ.cpp/AMQP_HighestVersion.h.tmpl
@@ -1,4 +1,4 @@
-&{AMQP_HighestVersion.cpp}
+&{AMQP_HighestVersion.h}
/*
*
* Licensed to the Apache Software Foundation (ASF) under one
@@ -25,7 +25,18 @@
* Supported AMQP versions:
%{VLIST} * ${major}-${minor}
*/
+#ifndef _AMQP_HighestVersion_
+#define _AMQP_HighestVersion_
-#include <AMQP_HighestVersion.h>
+#include <ProtocolVersion.h>
-qpid::framing::ProtocolVersion highestProtocolVersion(${hv_latest_major}, ${hv_latest_minor});
+
+namespace qpid {
+namespace framing {
+
+static ProtocolVersion highestProtocolVersion(${hv_latest_major}, ${hv_latest_minor});
+
+} /* namespace framing */
+} /* namespace qpid */
+
+#endif