1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#include "version.hh" #include <stdio.h> static char *s = "GNU LilyPond " MAJOR_VERSION "." MINOR_VERSION "." PATCH_LEVEL MY_PATCH_LEVEL " #%d"; static const int build= #include ".build" ; char const * lily_version_sz() { static char v[1024]; sprintf(v, s, build); return v; }