X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fversion.cpp;h=1e4aa324396b0a90fb026f3d3a92d495979f5d07;hb=4db3e641ed6765e005343010cb90ee8af26f8f99;hp=6027f9a06cb1b963b3f2232e4112dfd628140837;hpb=77cfe019f21bfc8649a7367e367dd1f568959dc3;p=lyx.git diff --git a/src/version.cpp b/src/version.cpp index 6027f9a06c..1e4aa32439 100644 --- a/src/version.cpp +++ b/src/version.cpp @@ -7,17 +7,23 @@ * \author Jean-Marc Lasgouttes * * Full author contact details are available in file CREDITS. - * - * Warning! This file is autogenerated from version.cpp.in. - * All changes to this file will be lost. */ #include +#if ! defined(LYX_DATE) + #include +#endif /// -char const * lyx_version = PACKAGE_VERSION; +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_release_date = LYX_DATE; +extern char const * const lyx_release_date = LYX_DATE; + +/// Package identifier (lyx[-]) +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;