// -*- C++ -*-
-/* Version and release date definition */
+/**
+ * \file version.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author Jean-Marc Lasgouttes
+ *
+ * Full author contact details are available in file CREDITS.
+ */
+
+#ifndef VERSION_H
+#define VERSION_H
+
+//namespace lyx {
+
+///About dialog, inset info, export headers
+extern char const * const lyx_version;
+//.lyx header. We don't want lyx_version because of VCS conflicts.
+extern const int lyx_version_major;
+extern const int lyx_version_minor;
///
-#define LYX_VERSION "1.2.0cvs"
-///
-#define LYX_RELEASE "Thu, Jan 11, 2001"
-/* This version string is intended to be used in files created by LyX */
-///
-#define LYX_DOCVERSION "LyX 1.2"
+extern char const * const lyx_release_date;
+
+/// Package identifier (lyx[-<version-suffix>])
+extern char const * const lyx_package;
+
+/// This is the version information shown by 'lyx -version'
+extern char const * const lyx_version_info;
+
+// Do not remove the comment below, so we get merge conflict in
+// independent branches. Instead add your own.
+#define LYX_FORMAT_LYX 424 // jrioux : \cite_engine_type (authoryear|numerical)
+#define LYX_FORMAT_TEX2LYX 424 // jrioux : \cite_engine_type (authoryear|numerical)
+
+#if LYX_FORMAT_FOR_TEX2LYX != LYX_FORMAT_FOR_LYX
+#warning "tex2lyx produces an out of date file format."
+#warning "Please update tex2lyx as soon as possible, since it depends implicitly"
+#warning "on the current file format in some places (this causes bugs like #7780)."
+#endif
+
+//} // namespace lyx
+
+#endif