]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/lilypond-version.hh
Run grand-replace (issue 3765)
[lilypond.git] / lily / include / lilypond-version.hh
1 /*
2   This file is part of LilyPond, the GNU music typesetter.
3
4   Copyright (C) 1998--2014 Jan Nieuwenhuizen <janneke@gnu.org>
5
6   LilyPond is free software: you can redistribute it and/or modify
7   it under the terms of the GNU General Public License as published by
8   the Free Software Foundation, either version 3 of the License, or
9   (at your option) any later version.
10
11   LilyPond is distributed in the hope that it will be useful,
12   but WITHOUT ANY WARRANTY; without even the implied warranty of
13   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   GNU General Public License for more details.
15
16   You should have received a copy of the GNU General Public License
17   along with LilyPond.  If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef LILYPOND_VERSION_HH
21 #define LILYPOND_VERSION_HH
22
23 #include "std-string.hh"
24
25 struct Lilypond_version
26 {
27   Lilypond_version (int major, int minor, int patch);
28   Lilypond_version (const string &str);
29
30   string to_string () const;
31   operator int () const;
32
33   int major_;
34   int minor_;
35   int patch_;
36   string extra_patch_string_;
37 };
38
39 extern Lilypond_version oldest_version;
40
41 #endif // LILYPOND_VERSION_HH