rizin/binr/blob/version.c
Damien Zammit 632dccc217 Remove LIL_ENDIAN macro and configure option
TODO: Remove other endian cruft from:
- hashing algs
- judy
- squashfs
- grub
- tms320

Signed-off-by: Damien Zammit <damien@zamaudio.com>
2016-05-06 10:21:55 +02:00

27 lines
509 B
C

/* copyright 2015 radare2 by pancake */
#include <r_userconf.h>
#ifndef R2_GITTAP
#define R2_GITTAP ""
#endif
#ifndef R2_GITTIP
#define R2_GITTIP ""
#endif
#ifndef R2_BIRTH
#define R2_BIRTH "unknown"
#endif
static int blob_version(const char *program) {
printf ("%s "R2_VERSION" %d @ "
R_SYS_OS"-"
R_SYS_ARCH"-%d git.%s\n",
program, R2_VERSION_COMMIT,
R_SYS_BITS&8?64:32,
*R2_GITTAP? R2_GITTAP: "");
if (*R2_GITTIP) {
printf ("commit: "R2_GITTIP" build: "R2_BIRTH"\n");
}
return 0;
}