]> git.lyx.org Git - lyx.git/blob - src/version.h
9293e4f6b08ec9b86056e569e6d9b76378cbd794
[lyx.git] / src / version.h
1 // -*- C++ -*-
2 /**
3  * \file version.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Jean-Marc Lasgouttes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef VERSION_H
13 #define VERSION_H
14
15 //namespace lyx {
16
17 ///About dialog, inset info, export headers
18 extern char const * const lyx_version;
19 //.lyx header. We don't want lyx_version because of VCS conflicts.
20 extern const int lyx_version_major;
21 extern const int lyx_version_minor;
22 ///
23 extern char const * const lyx_release_date;
24
25 /// Package identifier (lyx[-<version-suffix>])
26 extern char const * const lyx_package;
27
28 /// This is the version information shown by 'lyx -version'
29 extern char const * const lyx_version_info;
30
31 // Do not remove the comment below, so we get merge conflict in
32 // independent branches. Instead add your own.
33 #define LYX_FORMAT_LYX 479 // spitz: beamer Lemma layout
34 #define LYX_FORMAT_TEX2LYX 479
35
36 #if LYX_FORMAT_TEX2LYX != LYX_FORMAT_LYX
37 #ifndef _MSC_VER
38 #warning "tex2lyx produces an out of date file format."
39 #warning "Please update tex2lyx as soon as possible, since it depends implicitly"
40 #warning "on the current file format in some places (this causes bugs like #7780)."
41 #else
42 #pragma message("warning: tex2lyx produces an out of date file format. " \
43         "Please update tex2lyx as soon as possible, since it depends implicitly " \
44         "on the current file format in some places (this causes bugs like #7780).")
45 #endif
46 #endif
47
48 //} // namespace lyx
49
50 #endif