aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-11 12:47:14 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-11 20:23:08 +0300
commit2ebf9de408f3fd629126a20b21221e186195813c (patch)
treea745c1e01050eb65abde693b4e75fc5159d005d6 /web
parent951b7a4d3dc63fbf71059c7a3fc0bcec3c393fbe (diff)
Add libstudxml version check
Diffstat (limited to 'web')
-rw-r--r--web/.gitignore1
-rw-r--r--web/version.hxx.in12
-rw-r--r--web/xhtml.hxx2
3 files changed, 15 insertions, 0 deletions
diff --git a/web/.gitignore b/web/.gitignore
new file mode 100644
index 0000000..426db9e
--- /dev/null
+++ b/web/.gitignore
@@ -0,0 +1 @@
+version.hxx
diff --git a/web/version.hxx.in b/web/version.hxx.in
new file mode 100644
index 0000000..90bbaa6
--- /dev/null
+++ b/web/version.hxx.in
@@ -0,0 +1,12 @@
+// file : web/version.hxx.in -*- C++ -*-
+// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
+// license : MIT; see accompanying LICENSE file
+
+#ifndef WEB_VERSION_HXX_IN
+#define WEB_VERSION_HXX_IN
+
+#include <libstudxml/version.hxx>
+
+$libstudxml.check(LIBSTUDXML_VERSION, LIBSTUDXML_SNAPSHOT)$
+
+#endif // WEB_VERSION_HXX_IN
diff --git a/web/xhtml.hxx b/web/xhtml.hxx
index 878c255..b9ccff3 100644
--- a/web/xhtml.hxx
+++ b/web/xhtml.hxx
@@ -7,6 +7,8 @@
#include <libstudxml/serializer.hxx>
+#include <web/version.hxx>
+
namespace web
{
// "Canonical" XHTML5 vocabulary.