From: henryk@ploetzli.ch Date: Fri, 28 Aug 2009 02:40:22 +0000 (+0000) Subject: Trying automagic version stuff X-Git-Tag: v1.0.0~509 X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/42bc3be31c562fac31cbe5e451e4b48092f06e68 Trying automagic version stuff --- diff --git a/common/version.c b/common/version.c new file mode 100644 index 00000000..cd78272c --- /dev/null +++ b/common/version.c @@ -0,0 +1,10 @@ +#define VERSION "$Id $" +static const struct __attribute__((packed)) { + const char string[48]; + unsigned int length; + unsigned int magic; +} version __attribute__((unused,section("versioninformation"))) = { + VERSION, + sizeof(VERSION), + 0x48151623, +};