/*
This file is part of LilyPond, the GNU music typesetter.
- Copyright (C) 1998--2014 Jan Nieuwenhuizen <janneke@gnu.org>
+ Copyright (C) 1998--2015 Jan Nieuwenhuizen <janneke@gnu.org>
LilyPond is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#define LILYPOND_VERSION_HH
#include "std-string.hh"
+#include "compare.hh"
struct Lilypond_version
{
Lilypond_version (const string &str);
string to_string () const;
- operator int () const;
+ operator bool () const;
+ static int compare (const Lilypond_version &, const Lilypond_version &);
int major_;
int minor_;
string extra_patch_string_;
};
+INSTANTIATE_COMPARE (const Lilypond_version &, Lilypond_version::compare);
+
extern Lilypond_version oldest_version;
#endif // LILYPOND_VERSION_HH