]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - Vc/include/Vc/version.h
Vc package added (version 0.6.79-dev)
[u/mrichter/AliRoot.git] / Vc / include / Vc / version.h
diff --git a/Vc/include/Vc/version.h b/Vc/include/Vc/version.h
new file mode 100644 (file)
index 0000000..a54d145
--- /dev/null
@@ -0,0 +1,51 @@
+/*  This file is part of the Vc library.
+
+    Copyright (C) 2010-2012 Matthias Kretz <kretz@kde.org>
+
+    Vc is free software: you can redistribute it and/or modify
+    it under the terms of the GNU Lesser General Public License as
+    published by the Free Software Foundation, either version 3 of
+    the License, or (at your option) any later version.
+
+    Vc is distributed in the hope that it will be useful, but
+    WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU Lesser General Public License for more details.
+
+    You should have received a copy of the GNU Lesser General Public
+    License along with Vc.  If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+#ifndef VC_VERSION_H
+#define VC_VERSION_H
+
+#define VC_VERSION_STRING "0.6.70-dev"
+#define VC_VERSION_NUMBER 0x00068d
+#define VC_VERSION_CHECK(major, minor, patch) ((major << 16) | (minor << 8) | (patch << 1))
+#define VC_LIBRARY_ABI_VERSION 1
+
+namespace Vc
+{
+    static inline const char *versionString() {
+        return VC_VERSION_STRING;
+    }
+
+    static inline unsigned int versionNumber() {
+        return VC_VERSION_NUMBER;
+    }
+
+#if !defined(VC_NO_VERSION_CHECK) && !defined(VC_COMPILE_LIB)
+    void checkLibraryAbi(unsigned int compileTimeAbi, unsigned int versionNumber, const char *versionString);
+    namespace {
+        static struct runLibraryAbiCheck
+        {
+            runLibraryAbiCheck() {
+                checkLibraryAbi(VC_LIBRARY_ABI_VERSION, VC_VERSION_NUMBER, VC_VERSION_STRING);
+            }
+        } _runLibraryAbiCheck;
+    }
+#endif
+} // namespace Vc
+
+#endif // VC_VERSION_H