]> git.lyx.org Git - lyx.git/blobdiff - src/version.cpp
Account for old versions of Pygments
[lyx.git] / src / version.cpp
index 0bc2be04570ac0e4835f1513bdecec1ef3153205..6701accdf95180878a3cf816eb1e545d6229449b 100644 (file)
 
 #include <config.h>
 
+#if ! defined(LYX_DATE)
+#include "lyx_date.h"
+#endif
+
+#if ! defined(LYX_GIT_COMMIT_HASH)
+#include "lyx_commit_hash.h"
+#endif
+
+///
+extern char const * const lyx_version = PACKAGE_VERSION;
+///
+extern const int lyx_version_major = LYX_MAJOR_VERSION;
+extern const int lyx_version_minor = LYX_MINOR_VERSION;
 ///
-char const * lyx_version = PACKAGE_VERSION;
+extern char const * const lyx_git_commit_hash = LYX_GIT_COMMIT_HASH;
 ///
-char const * lyx_release_date = LYX_DATE;
+extern char const * const lyx_release_date = LYX_DATE;
 
 /// Package identifier (lyx[-<version-suffix>])
-char const * lyx_package = PACKAGE;
+extern char const * const lyx_package = PACKAGE;
 
 /// This is the version information shown by 'lyx --version'
-char const * lyx_version_info = VERSION_INFO;
+extern char const * const lyx_version_info = VERSION_INFO;