3rd attempt on lyx_version_major/minor.

An object or reference that is explicitly declared const
and neither explicitly declared extern nor previously declared
to have external linkage has internal linkage.



git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37593 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2011-02-11 00:24:06 +00:00
parent c87247ed39
commit e2d0553f3e
2 changed files with 4 additions and 4 deletions

View File

@ -14,8 +14,8 @@
/// ///
char const * lyx_version = PACKAGE_VERSION; char const * lyx_version = PACKAGE_VERSION;
/// ///
int lyx_version_major = LYX_MAJOR_VERSION; extern const int lyx_version_major = LYX_MAJOR_VERSION;
int lyx_version_minor = LYX_MINOR_VERSION; extern const int lyx_version_minor = LYX_MINOR_VERSION;
/// ///
char const * lyx_release_date = LYX_DATE; char const * lyx_release_date = LYX_DATE;

View File

@ -17,8 +17,8 @@
///About dialog, inset info, export headers ///About dialog, inset info, export headers
extern char const * lyx_version; extern char const * lyx_version;
//.lyx header. We don't want lyx_version because of VCS conflicts. //.lyx header. We don't want lyx_version because of VCS conflicts.
extern int lyx_version_major; extern const int lyx_version_major;
extern int lyx_version_minor; extern const int lyx_version_minor;
/// ///
extern char const * lyx_release_date; extern char const * lyx_release_date;